You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have installed and configured this bundle and I am currently stucked at this.
I have User class with this properties:
ID (e.g. a1f6e80c-e342-11e6-8657-d144e2a286b5 - UUID)
...
type (e.g. user_one)
And I want to achieve this with User class
ID
...
user_one (ID of record in user_one table)
user_two (NULL, if user is of type user_one)
type (e.g. user_one)
Why I want to do this? Because now, when I want to read user_one I must bind it from database by ID. If I would have it as I show in the second example I could do simply this in twig:
{{ app.user.user_one.name }}
Is this possible and how? Sorry for my bad english...
The text was updated successfully, but these errors were encountered:
Hello, I have installed and configured this bundle and I am currently stucked at this.
I have User class with this properties:
ID (e.g. a1f6e80c-e342-11e6-8657-d144e2a286b5 - UUID)
...
type (e.g. user_one)
And I want to achieve this with User class
ID
...
user_one (ID of record in user_one table)
user_two (NULL, if user is of type user_one)
type (e.g. user_one)
Why I want to do this? Because now, when I want to read user_one I must bind it from database by ID. If I would have it as I show in the second example I could do simply this in twig:
{{ app.user.user_one.name }}
Is this possible and how? Sorry for my bad english...
The text was updated successfully, but these errors were encountered: