Note the upgraded forum! If you are experiencing issues logging in, you may need to reset your password which should send an email. If the email doesn't arrive, be sure to check your spam folder just in case.

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?



  • 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.