Help how to insert id from parent table to child table
Posted: 2017-02-09 18:16
Parent table :
Id
Name
Child table :
Id
Parent_id
Name
Now i want to insert child table automaticaly in before insert hooks on parent table
I've tried so many many times but what i got is always same
The value of parent_id is always 0
Can anyone help me?
Id
Name
Child table :
Id
Parent_id
Name
Now i want to insert child table automaticaly in before insert hooks on parent table
I've tried so many many times but what i got is always same
The value of parent_id is always 0
Can anyone help me?