Hi,
I would like to know how I could combine findOne and attribute in order to link a new record with a link of a link. Let me explain.
EntityA is linked to one EntityB which is linked to one EntityC.
In the form for creating a record of EntityA, the user choses to link it to a specific id of EntityB. I want to collect the name of the EntityC record to which EntityB is connected and put it in a field of EntityA.
Is it possible?
Can I do it even for many-to-many relationships, and choosing the first link?
Thanks.
I would like to know how I could combine findOne and attribute in order to link a new record with a link of a link. Let me explain.
EntityA is linked to one EntityB which is linked to one EntityC.
In the form for creating a record of EntityA, the user choses to link it to a specific id of EntityB. I want to collect the name of the EntityC record to which EntityB is connected and put it in a field of EntityA.
Is it possible?
Can I do it even for many-to-many relationships, and choosing the first link?
Thanks.