<?php

namespace Market\ZodacoBundle\Entity;

use Doctrine\ORM\EntityRepository;

/**
 * WithdrawalRepository
 *
 * This class was generated by the Doctrine ORM. Add your own custom
 * repository methods below.
 */
class WithdrawalRepository extends EntityRepository
{

    public function _getlist($id) {
        $q = 'SELECT c FROM MarketZodacoBundle:Withdrawal c WHERE c.user_id=' . $id . ' ORDER BY c.id DESC';
        return $this->getEntityManager()
                        ->createQuery($q)
                        ->getResult();
    }
}
