Entity/DocumentTagRepository.php
changeset 34 21fab44f46fe
parent 8 7d2fb5d7c9ff
child 57 186c4121c7b3
equal deleted inserted replaced
30:d2fba1e3b94b 34:21fab44f46fe
    65         $qb = $qb->setParameters($params);
    65         $qb = $qb->setParameters($params);
    66         
    66         
    67         return $qb;
    67         return $qb;
    68     }
    68     }
    69     
    69     
       
    70     /**
       
    71      *
       
    72      * Enter description here ...
       
    73      * @param unknown_type $external_id
       
    74      * @param array $filter_array
       
    75      */
    70     public function findByDocumentExternalId($external_id, array $filter_array=null)
    76     public function findByDocumentExternalId($external_id, array $filter_array=null)
    71     {
    77     {
    72         $qb = $this->createQueryBuilderByDocumentExternalId($external_id, $filter_array);
    78         $qb = $this->createQueryBuilderByDocumentExternalId($external_id, $filter_array);
    73         return $qb->getQuery()->getResult();
    79         return $qb->getQuery()->getResult();
    74     }
    80     }
    75     
    81     
       
    82     /**
       
    83      *
       
    84      * Enter description here ...
       
    85      * @param unknown_type $external_id
       
    86      * @param array $filter_array
       
    87      */
    76     public function findOneByDocumentExternalId($external_id, array $filter_array=null) {
    88     public function findOneByDocumentExternalId($external_id, array $filter_array=null) {
    77         
    89         
    78         $qb = $this->createQueryBuilderByDocumentExternalId($external_id, $filter_array)->setMaxResults(1);
    90         $qb = $this->createQueryBuilderByDocumentExternalId($external_id, $filter_array)->setMaxResults(1);
    79         
    91         
    80         try {
    92         try {