propelorm/PropelBundle — Issue #60: 2 possible (unrelated) issues in PropelBundle\Security
Author: drjones69
Created: 2011-10-10 15:38:02+00:00
State: open

Afternoon!,

After much (more) struggling to get symfony2 to use Propel as a provider for security, I believe I've come across a further couple of issues, I'm listing them here should anyone wish to investigate.

1) Within : Propel\PropelBundle\Security\User\ModalUserProvider (line 93)
This is given as 'if ($user instanceof $this->class) {', are you sure it shouldn't be 'if (!($user instanceof $this->class)) {' ?
It continually throws a "There is no user provider for user" exception in it's initial state (via (sf) firewall ContextListener), but works as expected when negated.

2) Within : Propel\PropelBundle\Security\User\ModalUserProvider (line 64 & 65)

ucfirst($property) should be (I believe), ucfirst($this->property) (causes fatal error in current form)

Feel free to drop me an email or catch me in #propel (nick=drjones69) for any clarification.

Regards,
Ryan