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 created a ReferenceMany relation in order to add actors to a movie. It works perfectly, but I'm looking for a solution to store the actor name with the reference.
I just need a quick way to get the actors names without calling the Actor Collection
So I'd like to store the name with the reference.
Is it possible, and how ?
Thanks
Grégory
The text was updated successfully, but these errors were encountered:
Out of the box, no. I've started working on that feature in #1527, but decided to move it to the 2.0 milestone because it may require some reference changes. At this time, I wouldn't hold my breath to get this in a 1.x release.
As for a workaround, you may be able to magically update the owning object by gaining access to the owner in a postLoad event handler (using the getParentAssociation method in UnitOfWork) and updating the owning object. The name won't be stored on the reference but in a separate field since you don't have access to the generated DBRef object.
Hello
I created a ReferenceMany relation in order to add actors to a movie. It works perfectly, but I'm looking for a solution to store the actor name with the reference.
I just need a quick way to get the actors names without calling the Actor Collection
So I'd like to store the name with the reference.
Is it possible, and how ?
Thanks
Grégory
The text was updated successfully, but these errors were encountered: