Hi,
this is my problem, I have two custom modules (A and B) which are linked together with a one-to-many relationship.
I’m in subpanel B and would like to get the id of module A, it seemed trivial, but I can’t seem to intercept it. If the relationship is already there, so I edit and save it, I use
$bean->rel_fields_before_value['..._ida'];
and it works perfectly, but if I’m creating a new record, this field comes up empty, even though it’s inside the logic_hook after_save.
Can anyone tell me how to solve this? Thanks
I never did this, but maybe try it in another hook:
after_relationship_add
Fired after a relationship is added between two records. Note that this may be called twice, once for each side of the relationship.