Entity/DocumentRepository.php
changeset 34 21fab44f46fe
parent 30 d2fba1e3b94b
child 37 9ba15af20acc
equal deleted inserted replaced
30:d2fba1e3b94b 34:21fab44f46fe
   206         
   206         
   207         $document->setTagsStr(implode(",",$tagstr));
   207         $document->setTagsStr(implode(",",$tagstr));
   208         $this->getEntityManager()->persist($document);
   208         $this->getEntityManager()->persist($document);
   209     }
   209     }
   210     
   210     
       
   211 
   211     /**
   212     /**
   212      *
   213      *
   213      * Enter description here ...
   214      * Enter description here ...
   214      * @param array $values : key: the fields to search into, value array('value'=>value, 'weight'=>weight)
   215      * @param array $values : key: the fields to search into, value : array('value'=>value, 'weight'=>weight)
   215      * @param unknown_type $conditions
   216      * @param array $conditions : array : key : field name, value : simple value (operator is "=") or array(valuea, value2,...) (operatr is IN) or array("operator"=>"", "value"=>value)
       
   217      * @return Ambigous <multitype:, \Doctrine\ORM\mixed, \Doctrine\DBAL\Driver\Statement, \Doctrine\ORM\Internal\Hydration\mixed>
   216      */
   218      */
   217     function search(array $values, array $conditions=NULL)
   219     function search(array $values, array $conditions=NULL)
   218     {
   220     {
   219         $em = $this->getEntityManager();
   221         $em = $this->getEntityManager();
   220         
   222