root/trunk/lib/model/ApplicationDeveloperPeer.php

Revision 2, 0.5 kB (checked in by nperriault, 8 months ago)

First commit of the extracted code from production, I hope no passwd has been forgotten :-)

Line 
1 <?php
2 /**
3  * Subclass for performing query and update operations on the 'applications_developer' table.
4  *
5  * @package lib.model
6  */
7 class ApplicationDeveloperPeer extends BaseApplicationDeveloperPeer
8 {
9
10   public static function retrieveForUser($user, Criteria $c = null)
11   {
12     if (!$c instanceof Criteria)
13     {
14       $c = new Criteria();
15     }
16     $c->addJoin(self::APPLICATION_ID, ApplicationPeer::ID);
17     $c->add(self::DEVELOPER_ID, $user->getId());
18     $c->addDescendingOrderByColumn(self::STARTED_AT);
19     return self::doSelectJoinAll($c);
20   }
21
22 }
23
Note: See TracBrowser for help on using the browser.