Remove calls to dropped orders table

This commit is contained in:
Romain Neutron
2013-10-07 18:36:52 +02:00
parent b7773a44ef
commit 097e1f21ae
2 changed files with 17 additions and 5 deletions

View File

@@ -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
*