Example #1
0
 /**
  * @param $filterArray
  * @param array $attributes
  * @return string LDAP filter string
  * @see \CarnegieLearning\LdapOrmBundle\Ldap\Filter\LdapFilter::createComplexLdapFilter($mixed)
  */
 public function findByComplex($filterArray, $attributes = array())
 {
     $options = [];
     $options['filter'] = new LdapFilter($filterArray);
     foreach ($attributes as $key => $value) {
         $options[$key] = $value;
     }
     return $this->em->retrieve($this->entityName, $options);
 }