sorry, I didn't answered your question! I've used this technique with Doctrine1.2 (IHMO both sf 1.2.9 and 1.3 use doctrine 1.2 )
On 2 déc, 11:15, Florian <sideral.undergro...@gmail.com> wrote: > Hi! > > For me, it's a problem of __magic : > > You maybe come from Propel's ORM ( who generates *real* getters and > setters ) > so you can overload these defined in BaseClass in the final Class. > > But with Doctrine, it uses magic __call method for get* and set*, and > delegates to Doctrine_Record::get ( and ::_get ) methods. > > If you want to overlaod the getWebUser method, use that: > > public function getWebUser($load=true) { > $webUser = $this->get('web_user', $load); > > } > > Hope it helps! > > Florian > > On 2 déc, 10:19, ridcully <ohnhei...@googlemail.com> wrote: > > > Forget to say that i'm using doctrine. > > On Dec 2, 10:12 am, ridcully <ohnhei...@googlemail.com> wrote: > > > > Hi, > > > > after updating from symfony 1.2.9 to symfony 1.3.0 i can't call parent > > > Methods Call anymore when i've overload the method: > > > > Class XY extends BaseXY{ > > > > public function getWebUser($load=true){ > > > $webUser = parent::getWebUser($load); > > > if ..... > > > > } > > > > } > > > > I get an segmation Fault and I've debug the the Parent call and > > > Symfony tries to call methods from Class XY and not the method > > > BaseXY, so it's a neverending loop. > > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.