one to one relationship

any suggestion how I can implement the modal if I have a pair of one to one tables? I would like to edit the two tables fields in a single page.

e.g. each product have one and only one record in product_price table, actually they can combine into one table but DBA decide to split them into two. Can I use a single page to edit all the fields in two tables?

Thanks.

Comments

  • Is it a foreign key relationship? If so, you can specify the $foriegn_keys property on the model (array syntax) and it will trigger a dropdown with the modal to add/edit.

Sign In or Register to comment.