Re: Implement Getter/Setter in Model-Classes

2011-11-19 Thread 0x20h
Am 17.11.2011 12:18, schrieb Gerrit: > It's already called after Model->read()?? Yes, read() find()s the requested record and sets the result to $this->data. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.c

Re: Implement Getter/Setter in Model-Classes

2011-11-17 Thread phpMagpie
> I know there is a callback beforeSave, but there is no afterRead. You were close with afterRead, that I'm not sure how you missed afterFind :) http://book.cakephp.org/view/1048/Callback-Methods HTH, Paul -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Ch

Re: Implement Getter/Setter in Model-Classes

2011-11-17 Thread Jeremy Burns | Class Outfit
Not with you. If you want to perform some logic 'after' a 'find' (there's a clue there somewhere) put it in the afterFind callback of your model. Jeremy Burns Class Outfit http://www.classoutfit.com On 17 Nov 2011, at 11:18, Gerrit wrote: > It's already called after Model->read()?? > > On 17

Re: Implement Getter/Setter in Model-Classes

2011-11-17 Thread Gerrit
It's already called after Model->read()?? On 17 Nov., 12:08, Jeremy Burns | Class Outfit wrote: > afterFind? > > Jeremy Burns > Class Outfit > > http://www.classoutfit.com > > On 17 Nov 2011, at 11:06, Gerrit wrote: > > > > > > > > > Hello everybody, > > > I try to change the format of a variable

Re: Implement Getter/Setter in Model-Classes

2011-11-17 Thread Jeremy Burns | Class Outfit
afterFind? Jeremy Burns Class Outfit http://www.classoutfit.com On 17 Nov 2011, at 11:06, Gerrit wrote: > Hello everybody, > > I try to change the format of a variable after reading and before > saving. Is there a possibility. I know there is a callback beforeSave, > but there is no afterRead.

Implement Getter/Setter in Model-Classes

2011-11-17 Thread Gerrit
Hello everybody, I try to change the format of a variable after reading and before saving. Is there a possibility. I know there is a callback beforeSave, but there is no afterRead. Thx. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakeP