Add object types used to narrow the query. This can either be a string name representing the object type from the
schema, such as 'user' or 'group' or you can pass the LdapObjectSchema for the type. If you are using this class
without a schema then construct the query manually by just using the "where" and "andWhere" methods.
function it_should_set_the_ldap_type_for_the_role_query() { $this->setRoleLdapType('foo'); $this->qb->from('foo')->shouldBeCalled()->willReturn($this->qb); $this->loadUserByUsername('foo'); }
/** * Get the LdapQueryBuilder with the defaults for this repository type. * * @return LdapQueryBuilder */ public function buildLdapQuery() { $lqb = new LdapQueryBuilder($this->ldap); if (!empty($this->attributes)) { $lqb->select($this->attributes); } return $lqb->from($this->schema); }