Re: Change a field's value after changing another field using Model->set(...)

2010-10-29 Thread Anthony
You also may want to check out the modified and created *magic* columns. http://book.cakephp.org/view/69/created-and-modified On Oct 28, 5:53 am, Joshua Muheim wrote: > Right, I forgot about that... Silly me. Thank you, Mark! > > On Thu, Oct 28, 2010 at 11:59 AM, euromark wrote: > > beforeSave()

Re: Change a field's value after changing another field using Model->set(...)

2010-10-28 Thread Joshua Muheim
Right, I forgot about that... Silly me. Thank you, Mark! On Thu, Oct 28, 2010 at 11:59 AM, euromark wrote: > beforeSave() would be it > > > On 28 Okt., 11:49, psybear83 wrote: >> High everybody >> >> I have a model with two fields. The first field is altered using >> Model->set(), and as soon a

Re: Change a field's value after changing another field using Model->set(...)

2010-10-28 Thread euromark
beforeSave() would be it On 28 Okt., 11:49, psybear83 wrote: > High everybody > > I have a model with two fields. The first field is altered using > Model->set(), and as soon as this happens, I want the other field to change > > its value (to the current time), too. Is there a hook mechanism or

Change a field's value after changing another field using Model->set(...)

2010-10-28 Thread psybear83
High everybody I have a model with two fields. The first field is altered using Model- >set(), and as soon as this happens, I want the other field to change its value (to the current time), too. Is there a hook mechanism or something that can be used to do that? Thanks, Josh Check out the new Ca