Hello,
I have the base table called SnUser and a related table, SnAltceva
schema.yml
SnUser: columns: name: { type: string(100) } age: { type: integer(1) } level_id: integer relations: SnAltceva: { local: id, foreign: user_id }
and
SnAltceva: columns: user_id: integer field_1: string(10) field_2: integer(1) relations: SnUser: local: user_id foreign: id onDelete: CASCADE
I created SnUser form and embedded it with a new SnAltceva form. Everything works well, sn_user table is updated with the new record, also the sn_altceva but the user_id is NULL.
My wish is to update this field also with the newly inserted if from SnUser. I suspect I need to override save() from /lib/model/doctrine/SnUser.class.php but not quite sure how.
Any suggestions? Thanks