symfony1 - Form : sfWidgetFormDoctrineChoice, choose the method -


I want to use a widget principle in my form, but I do not use the method to display its result Could change the principle of the query.

I have created a function in my model:

  public function quatier () {return $ this- & gt; GetQuartier (); }  

And MyClassForm:

  $ this-> widgetSchema [ 'list_quartiers'] = new SfWidgetFormDoctrineChoice (array ( 'model' = & gt; fragmentation ',' Add_empty '= & gt; wrong,' method '= & gt;' quartiers () ',' query '= & gt; $ result = doctrine_Query :: create () - & gt; select (' p. quartier '- & gt; the (' Parclogement p '- & gt; GroupBy (' quartier '));  

I have this error:

  unknown method Parclogement :: Quartiers ()  

when I tries with its widget default method (__toString), then it works.

< P>

It may be that after the 'quartiers ()' brackets Land? Try to make it 'method' => 'quartiers'?


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -