Add multiple rows in two table 1:m relationship?
- Single Page
Posted 04 December 2012 - 08:43 AM
For my question: is it possible to use grocery CRUD to set up a 1:m parent-child relationship to add/edit mutiple children for each parent in the following format:
[b]user (parent[/b])
id
name
description
email_address
website
[b]user_address (child[/b])
id
[i]user_id[/i] (fk)
address
city
country
Some posts describe this (e.g., /topic/93-masterdetails-forms-with-grocery-crud), but thought I would ask before spending more time trying to figure this out alone.
Many thanks in advance!
Posted 04 December 2012 - 09:26 AM
May be it will be useful to you:
http://www.grocerycrud.com/documentation/options_functions/set_relation_n_n
all documentations is here:
http://www.grocerycrud.com/documentation
Posted 04 December 2012 - 10:24 AM
Thanks for your response.
In the page you provided (http://www.grocerycrud.com/documentation/options_functions/set_relation_n_n), relationships are created between the parent entity (film) and existing children entities (actor, category). Is it possible to use grocery CRUD to create both the children entities and the relationship to the parent entity?
Thanks!