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
{{ message }}
This repository was archived by the owner on Dec 1, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 1, 2021. It is now read-only.
... then my app totally crashes. It does not support hydrating the stock relation into this Stock class, annotated with @OGM\RelationshipEntity(type="STOCK").
Am I missing some important concept, or is it just that no-one has ran into this before?
To get to my Stock-object, I can of course also use my defined relation (with @OGM\Relationship()):
... but that one gives my Collection of all the Store's products! So I would still need to loop over all of those to see what Stock-object in that Collection is the one that points to the right Product. I just want the Stock object from the query.
I think it would be really great if I can hydrate the relation model via the same way I can hydrate the node model.
Activity
cebe commentedon Nov 2, 2018
how did you define Stock class and what is the error message you see?