Try:

$this->_set('is_activated', true);


Cheers, Daniel

On 04.08.2010, at 02:25, Tristan wrote:

> If i remove the parent::  it still not work :
> 
> 
> public function setIsActivated($value)
>               {
>                       if ($value == false)
>                       {
>                               $context = sfContext::getInstance();
>                               
> $context->getConfiguration()->loadHelpers('Partial');
> 
>                               $email = 
> $this->getSfGuardUser()->getProfile()->getEmail();
> 
>                               $message = $context->getMailer()->compose(
>                                       'no-re...@ccc.com',
>                                       $email,
>                                       'your offer has been published ',
>                                       'coucou'
>                                       );
> 
>                               $message->setContentType('text/html');
>                               
> sfContext::getInstance()->getMailer()->send($message);
> 
>                               $this->set('is_activated', 'true');
>                       }
>                       else
>                       {
>                               $this->set('is_activated', 'false');
>                       }
>               }
> 
> -- 
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.com
> 
> 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@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to