Entity/DocumentTagRepository.php
changeset 8 7d2fb5d7c9ff
parent 5 45378793512a
child 34 21fab44f46fe
equal deleted inserted replaced
7:7a877de630fd 8:7d2fb5d7c9ff
    54 
    54 
    55         $params = array("external_id"=>strval($external_id));
    55         $params = array("external_id"=>strval($external_id));
    56         
    56         
    57         if(!is_null($filter_array)) {
    57         if(!is_null($filter_array)) {
    58             foreach ($filter_array as $key => $value) {
    58             foreach ($filter_array as $key => $value) {
    59                 $qb = $qb->where("dt.$key = :p_$key");
    59                 $qb = $qb->andWhere("dt.$key = :$key");
    60                 $params["p_$key"] = $value;
    60                 //$params[$key] = $value;
    61             }
    61             }
       
    62             $params = array_merge($params, $filter_array);
    62         }
    63         }
    63         
    64         
    64         $qb = $qb->setParameters($params);
    65         $qb = $qb->setParameters($params);
    65         
    66         
    66         return $qb;
    67         return $qb;