Author: allyb
Date: 2010-02-21 23:01:58 +0100 (Sun, 21 Feb 2010)
New Revision: 28171
Modified:
plugins/sfEasyAuthPlugin/branches/2010-02-18_integration-of-doctrine/lib/model/sfEasyAuthUserBase.php
Log:
Final tweaks for doctrine
Modified:
plugins/sfEasyAuthPlugin/branches/2010-02-18_integration-of-doctrine/lib/model/sfEasyAuthUserBase.php
===================================================================
---
plugins/sfEasyAuthPlugin/branches/2010-02-18_integration-of-doctrine/lib/model/sfEasyAuthUserBase.php
2010-02-21 21:51:26 UTC (rev 28170)
+++
plugins/sfEasyAuthPlugin/branches/2010-02-18_integration-of-doctrine/lib/model/sfEasyAuthUserBase.php
2010-02-21 22:01:58 UTC (rev 28171)
@@ -59,7 +59,7 @@
}
// get all credentials for the user
- foreach
(Doctrine::getTable('sfEasyAuthUserCredential')->findOneByUserId/*&sfEasyAuthUserCredentialPeer::retrieveByUserId###Doctrine::getTable('sfEasyAuthUserCredential')->findOneByUserId&*/($this->getId())
as $credential)
+ foreach
(Doctrine::getTable('sfEasyAuthUserCredential')->findByUserId/*&sfEasyAuthUserCredentialPeer::retrieveByUserId###Doctrine::getTable('sfEasyAuthUserCredential')->findByUserId&*/($this->getId())
as $credential)
{
$credentials[] = $credential->getCredential();
@@ -185,9 +185,9 @@
if ($profileId !== null)
{
- if (!is_integer($profileId))
+ if (!intval($profileId) == $profileId)
{
- throw new sfException("Profile ID must be an integer");
+ throw new sfException("Profile ID must be an integer: {$profileId}
given");
}
$userCredential->setProfileId($profileId);
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" 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-svn?hl=en.