En fait tu peux avoir une fonction
StatusPeer::GetCriteriaAllStatusExceptDefault()
qui renvoie le criteria que tu utilises pour ta fonction
StatusPeer::GetAllStatusExceptDefault()
Et tu la passes pour le widget et pour le validator avec l'option criteria
= 'GetCriteriaAllStatusExceptDefault'
Merci de ta reponse, mais je ne comprend pas ...
Ce que je comprend c'est que j'ai une fonction qui me retourne le
critere:
Donc j'ai ca :
static public function GetCriteriaAllStatusExceptDefault()
{
$c = new Criteria();
$c-add(StatusPeer::CHOIX_PAR_DEFAULT, FALSE);
return $c;
}
Hello,
La liste des options pour un sfWidgetFormPropelSelect se trouve ici :
http://www.symfony-project.org/api/1_2/sfWidgetFormPropelSelect#method_configure
HTH,
Tonio
On Jun 8, 4:12 pm, Arkan florian.bertho...@gmail.com wrote:
Merci de ta reponse, mais je ne comprend pas ...
Ce que je
Merci a vous ;)
Probleme resolu avec ceci.
$this-widgetSchema['status_id'] = new sfWidgetFormPropelChoice(array
('model' = 'Status', 'add_empty' = false, 'criteria' = $c));
Merci beaucoup ;)
Symfony ca roxx :)
On 8 juin, 18:23, Tonio brankg...@gmail.com wrote:
Hello,
La liste des options