logo       

[symfony-users] Re: Help For Nested Form: msg#00825

symfony-users

Subject: [symfony-users] Re: Help For Nested Form


use embedForm in the forms class
class Game extends ......{
$this->embedForm('formname', new FormYouWantToEmbed());
}
this will display the form

On Jul 29, 2:28 pm, seifolah Ghaderi <sepel...@xxxxxxxxx> wrote:
> Hi All.
> It's my project plan.
> I have  *league*  table.
> Each *league*  table has many *Week* and also has many *Team* .
> *Week* has many *Game* , And each *Game* has two* Team* .
> In *Game* table i set two foreign key to *Team* table,But In my *Game* form
> It doesn't show two Combo box for my two foreign keys!!
>
> I Have another problem.
> I wanna to show all child in each parent form,User can edit and new child to
> this parent.And when inserting new child automatically add current parent to
> this child(don't show all parent).
> This scenario are necessary for nested model.
> Another problem is :When I want to add a *Game  *I* *need to show all *Team
> *that not assigned for current *Week *and belong to the *league * of the
> current *Week *.
> Where I should define to fetch these *Team* ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to symfony-users@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
symfony-users+unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Google Custom Search

News | Mail Home | sitemap | FAQ | advertise