That is correct. - Jon
On Tue, Nov 4, 2008 at 9:57 AM, Cédric Sadai <[EMAIL PROTECTED]> wrote: > > hey, > > if I remember well: > > in lib/doctrine/User.class.php > > public function getAvatar() > { > $val = parent::_get('avatar'); > //your processing > return $myProcessedValue; > } > > ++ > > On Nov 4, 12:10 pm, Halla <[EMAIL PROTECTED]> wrote: > > Hi everybody, > > > > I'm using Doctrine and I'd like to know if it is possible to overwrite > > the Getter-Methods. > > > > Maybe an example makes my question more precise... > > I'm retrieving a User-Record from my Database: > > > > $user = $Doctrine::getTable('User')->find($id); > > > > Then I access a field from this record: > > $user->get('avatar'); > > > > So far, so good. > > But what do I have to if I want to process this Value right after > > reading from the Database? > > F.E. if a User has no Avatar and I want to return a default-Avatar? > > > > Thanks for any help in advance, > > Daniel > > > -- Jonathan H. Wage Open Source Software Developer & Evangelist http://www.jwage.com http://www.doctrine-project.org http://www.symfony-project.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---