Author: allyb
Date: 2010-01-12 18:18:41 +0100 (Tue, 12 Jan 2010)
New Revision: 26541

Modified:
   plugins/sfEasyAuthPlugin/trunk/lib/model/sfEasyAuthUserBasePeer.php
Log:
Added a new method to the peer class: retrieveByType

Modified: plugins/sfEasyAuthPlugin/trunk/lib/model/sfEasyAuthUserBasePeer.php
===================================================================
--- plugins/sfEasyAuthPlugin/trunk/lib/model/sfEasyAuthUserBasePeer.php 
2010-01-12 17:11:28 UTC (rev 26540)
+++ plugins/sfEasyAuthPlugin/trunk/lib/model/sfEasyAuthUserBasePeer.php 
2010-01-12 17:18:41 UTC (rev 26541)
@@ -29,6 +29,20 @@
     
     return self::doSelectOne($c);
   }
+
+  /**
+   * Retrieve all users of a given type
+   *
+   * @param string $type
+   * @return array
+   */
+  public static function retrieveByType($type)
+  {
+    $c = new Criteria();
+    $c->add(self::TYPE, $type);
+
+    return self::doSelect($c);
+  }
   
   /**
    * Retrieve a user by their email address

-- 
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.


Reply via email to