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 <[email protected]> wrote:
> Forget to say that i'm using doctrine.
> On Dec 2, 10:12 am, ridcully <[email protected]> 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 [email protected].
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.