thank for your answer william.. i'll try your suggestion

best regards
nibsirahsieu

On Wed, Jun 15, 2011 at 8:53 PM, William DURAND
<william.dura...@gmail.com>wrote:

> Hi,
>
> You have to use a Proxy class that handles the real User Propel object
> and implements the UserInterface.
> This is pretty easy but you will have to override the part where the
> user is retrieved to use your Proxy class instead of your Model class.
>
> Regards,
> William.
>
> On 15 juin, 15:44, Nibsirahsieu <nibsirahs...@gmail.com> wrote:
> > Thank you for your answer. propel doesn't allow to define a *equal
> *function
> > in my object class.
> >
> > Runtime Notice: Declaration of FOS\UserBundle\Model\Propel\User::equals()
> > should be compatible with that of BaseObject::equals() in
> >
> /home/webdev/symfony-standard/vendor/bundles/FOS/UserBundle/Model/Propel/Us
> er.php
> > line 27
> >
> >
> >
> >
> >
> >
> >
> > On Wed, Jun 15, 2011 at 8:15 PM, Christophe COEVOET <s...@notk.org>
> wrote:
> > >  Le 15/06/2011 14:09, nibsirahsieu a écrit :
> >
> > > I'm in the progress of making FOSUserBundle compatible with propel
> > > (using PropelBundle), but i encountered an issue that i think hard to
> > > resolve.
> > > This is because the different signature of equals function between
> > > UserInterface (Symfony\Component\Security\Core\User\UserInterface) and
> > > User object (inherits BaseObject class).
> > > In the UserInterface, the equals function defined as function
> > > equals(UserInterface $user) where as in the propel BaseObject class it
> > > was defined as equal($obj).
> >
> > > So far, i just removing equals function in the UserInterface class to
> > > make it work.
> >
> > > The questions is,  there is a way to make it work without removing
> > > equals function in the Symfony UserInterface class?
> >
> > > i'm sorry for my poor english..
> >
> > > best regards
> > > nibsirahsieu
> >
> > >  The *equals* method is part of the core UserInterface and is needed by
> > > the Security component. If you have an *equal* method in your Propel
> > > object, it does not forbid you to define a *equals* method. And if
> Propel
> > > forbids you to define *equals* according to the security UserInterface,
> > > you will not be able to use any Propel class as user in your project.
> >
> > > --
> > > Christophe | Stof
> >
> > >  --
> > > If you want to report a vulnerability issue on symfony, please send it
> to
> > > security at symfony-project.com
> >
> > > 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
> > > symfony-users+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/symfony-users?hl=en
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> 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
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to