authorize null field on create but make it required on update
Hello,
I have 3 linked tables. Let's call them table 1 , table 2 and table 3.
The table 2 is not managed on my app, it's only necessary for gather informations between 1 and 3 table.
So i plan to create a db::transaction with :
insert new row in table 1
insert 10 rows in table 2 in for loop with id of table 1
insert 3 rows for each of 10 rows inserted below (with ids of table 2)
For that, i have one form and this is on validation of this form that i need to make 2 fields of table 2 as required.
But i'm stuck with this.
Any help is welcome ! Thanks
nine