Hello,
i am using sfGuardPlugin and have extended sfGuardUserPeer class by
putting a file at lib/model/sfGuardUserPeer.php with the following content.
<?php
class sfGuardUserPeer extends PluginsfGuardUserPeer
{
public static function doSelectOne_ByUser( $username )
{
$criteria = new Criteria ();
$criteria->add( self::USERNAME, $username ) ;
return self::doSelectOne( $criteria ) ;
}
}
In an action i am calling this function like
sfGuardUserPeer::doSelectOne_ByUser( $username ) and things work as
expected.
On the other hand when i am running a test that runs the same action i
get an error:
Fatal error: Call to undefined method
sfGuardUserPeer::doSelectOne_ByUser() in [...]/actions.class.php on line xx
That means that symfony does not include the correct extended class
during testing while it does incude it while in dev or prod environments.
Anybody?
--
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 [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