This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

phplee
phplee

HI ,

not sure how to explain this.

i have a form (vehicles) which has a relation table (rates) on a separate tab on the vehicle form. I can't add a record to the rates table via the vehicles form unless the vehcle was previously saved.

Obviously because the vehicle form doesn't have a id yet as its not been saved i can't add records to the relationship table because there is no primary ID for the relationship table when saving.

Is there a way round this. im sure there is a setting in the model of controller. a mode of such that needs setting to get the PK on save etc.

abel
abel

I think what you need to look at is deferred binding

phplee

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.