Ben c'est la même chose, non ?

Dans sfFormPropel :
  /**
   * Returns true if the current form embeds a new object.
   *
   * @return Boolean true if the current form embeds a new object,
false otherwise
   */
  public function isNew()
  {
    return $this->isNew;
  }



On 17 sep, 16:59, "Nicolas Perriault" <[EMAIL PROTECTED]> wrote:
> 2008/9/17 Thomas Moyse <[EMAIL PROTECTED]>:
>
> > class TrucForm extends BaseTrucForm
> > {
> >  public function configure()
> >  {
> >    if ($this->isNew())
>
> Plutôt $this->getObject()->isNew() en l'occurence :)
>
> ++
>
> --
> Nicolas 
> Perriaulthttp://prendreuncafe.com-http://symfonians.net-http://sensiolabs.com
> Phone: +33 660 92 08 67
--~--~---------~--~----~------------~-------~--~----~
Vous avez reçu ce message, car vous êtes abonné au groupe Groupe "Symfony-fr" 
de Google Groupes.
 Pour transmettre des messages à ce groupe, envoyez un e-mail à 
l'adresse symfony-fr@googlegroups.com
 Pour résilier votre abonnement à ce groupe, envoyez un e-mail à 
l'adresse [EMAIL PROTECTED]
 Pour afficher d'autres options, visitez ce groupe à l'adresse 
http://groups.google.com/group/symfony-fr?hl=fr
-~----------~----~----~----~------~----~------~--~---

Répondre à