Wednesday, January 27, 2010

Re: question about automagic 'modified' field

You can write trigger in the database

On Mon, Jan 25, 2010 at 5:25 PM, Javier <domingo_dejesus@sbcglobal.net> wrote:
Is it possible to automagically update 'modified' field in a
'belongsTo' table when a table is updated.

my example is this: I have two tables with 'modified'
fields...'families' and 'family_members'. models are Family hasMany
FamiyMember, FamilyMember belongsTo Family.

When I edit an existing family_member the 'modified' field gets
updated in 'family_members' table. I would like 'modified' to get
updated in the 'families' table as well. How can I do that?

thanx in advance

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en



--
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: