Is this what you're looking for?

http://www.symfony-project.org/more-with-symfony/1_4/en/08-Advanced-Doctrine-Usage

On Tue, May 25, 2010 at 6:42 AM, Stéphane <[email protected]> wrote:
> Hi,
> No, think about listeners on Doctrine_Record and the postInsert hook.
> Cheers,
>
> Before Printing, Think about Your Environmental Responsibility!
> Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
>
>
> On Tue, May 25, 2010 at 2:34 AM, comb <[email protected]> wrote:
>>
>> Hi!
>>
>> I have a Commentable behavior.
>> Now I want to add a new column nb_comments to a Record with this
>> behavior for performance reasons.
>>
>>        public function setTableDefinition() {
>>                $this->hasColumn('nb_comments', 'integer', null,
>> array('default' =>
>> 0));
>> ...
>>
>> But where is the best place to increment/decrement the nb_comments
>> attribute? in the Comment-Module-Actions during the processForm/
>> executeDelete is a little dirty, isn't it??
>>
>> --
>> 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
>
> --
> 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
>

-- 
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