You are not calling the parent-node method when you execute
parent::save($conn);

Find the correct relation and use save on it :

$parentNode = $this->getParent(); // depends of your schema
$parentNode->touch(); // implement it
$parentNode->save();

2010/8/23 Alexis Sanchez <[email protected]>

> Hi
>
> I have this code:
>
> abstract class PluginAdCar extends BaseAdCar
> {
>
>    public function save(Doctrine_Connection $conn = null)
>    {
>
>        parent::save($conn);
>
>
>    }
> }
>
> I just want to update the parent Ad when the child relation AdCar is
> modified. The problem is that the funciont $ad->setUpdatedAt() doesn't
> change the date at all.
>
> I tried adding:
>
> $ad=$this->getAd();
>        $ad->setName('bmw')
>        $ad->save();
>        parent::save($conn);
>
> And is working. The UpdatedAt is not changend until I really change
> some value of the model with the doctrine behaivour. ¿is it possible
> only to change de updated date without change any value?
>
> --
> 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]<symfony-users%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alexandre Salomé
http://alexandre-salome.fr

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

Reply via email to