Import action afterCreate / afterSave not working to get parent ID
I need to create relationship data after the model created new data. But it doesn't work when I use afterCreate / afterSave, target_id is null in rate_card table.
The result in rate_card table :
1 Reply
I found the answer. for someone out there who might need it.
when we want to add data via the relationship name it will fail :
only can add via model directly :