logo       

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

symfony-users

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

Also look at sfForm::embedFormForEach() method.

http://www.symfony-project.org/api/1_2/sfForm#method_embedformforeach

On Wed, Jul 29, 2009 at 11:04 AM, mirfan <m.irfansb@xxxxxxxxx> wrote:

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
-~----------~----~----~----~------~----~------~--~---

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise