-
-
Notifications
You must be signed in to change notification settings - Fork 328
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
How to access nested reference property? #1019
Comments
Hello, Like you have 100 city and 100 address, maybe you could try this:
|
Hello, although this is a temporary fix and destroys logic of 1:N relation, for our testing purposes its enough atm. Thanks for your help 👍 PS: PR to implement this feature is welcomed, of course 😄 |
The first variant cannot indeed work due to conflicting with the existing features. The second however should work, but maybe |
The
|
I thinks the right syntaxe must be something like `@self->created_by->info->created`, but like said it nelmio#1116 and refered in nelmio#1019, it does not work for now. Using this syntax `@self->created_by.info.created`, it works.
You should try this: |
Hello guys. So I have this issue where i need to access 2nd level reference's property. How do I do this?
This is my schema:
YAML for alice:
However i get errors everytime i try to invoke <randomElement(@self->postalCodes)>:
or <randomElement($city->postalCodes)>:
It seems only 1st level of nesting is allowed.
Do you have any fixes/workarounds how to solve this? Thanks in advance..
The text was updated successfully, but these errors were encountered: