mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 05:23:21 +00:00
Remove calls to dropped orders table
This commit is contained in:
@@ -12,6 +12,18 @@ use Doctrine\ORM\EntityRepository;
|
||||
*/
|
||||
class OrderRepository extends EntityRepository
|
||||
{
|
||||
/**
|
||||
* Returns the orders initiated by a given user.
|
||||
*
|
||||
* @param \User_Adapter $user
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function findByUser(\User_Adapter $user)
|
||||
{
|
||||
return $this->findBy(array('usrId' => $user->get_id()));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an array of all the orders, starting at $offsetStart, limited to $perPage
|
||||
*
|
||||
|
Reference in New Issue
Block a user