Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

array variable underscore symbol _ array.parent_id work like array.parentid #1676

Closed
agrisvv opened this issue Apr 24, 2015 · 4 comments
Closed

Comments

@agrisvv
Copy link

agrisvv commented Apr 24, 2015

may someone knows, can't find in documentation..
do not work:

{{ arr.parent_id }} works: {{ arr.parentid }}

dump(arr):
-id: 19
-name: "Testa dokuments"
-parent_id: 0
-description: "Dokuments"
-version: 1

symfony error end with:
throw new Twig_Error_Runtime(sprintf('Method "%s" for object "%s" does not exist', $item, get_class($object)), -1, $this->getTemplateName());

thanks.

@kamilsk
Copy link

kamilsk commented Apr 24, 2015

Helped?

@agrisvv
Copy link
Author

agrisvv commented Apr 25, 2015

hi! thanks for explained.. now understand how twig get variables.

@agrisvv agrisvv closed this as completed Apr 25, 2015
@hason
Copy link
Contributor

hason commented Apr 25, 2015

@agrisvv It looks like you expect the behavior of #1299.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants