Reputation: 813
Need working example for multiple level embedded form in symfony-1.4(doctrine).
sample schema as below:
tableA:
id
tableB:
id
tableA_id
tableC:
id
tableB_id
For above prototype schema I want to add/edit record in above 3 table using same form.
Upvotes: 1
Views: 1601
Reputation: 1888
It's quite simple. You can embed these forms like this:
In form tableAForm.class.php embed tableBForm:
$this->embedRelation('tableB');
In form tableBForm.class.php embed tableCForm:
$this->embedRelation('tableC');
Upvotes: 0
Reputation: 854
Try to read here, it's not a three level embedding example, but can always be useful
Upvotes: 0
Reputation: 21
Please see the following document may this helps you to integrate embedded form.
Upvotes: 2