Adldap\Query\Builder::whereHas PHP Method

whereHas() public method

Adds a where has clause to the current query.
public whereHas ( string $field ) : Builder
$field string
return Builder
    public function whereHas($field)
    {
        return $this->where($field, Operator::$has);
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Performs a global 'all' search query on the current
  * connection by performing a search for all entries
  * that contain a common name attribute.
  *
  * @return array|bool
  */
 public function all()
 {
     return $this->query->whereHas($this->schema->commonName())->get();
 }
All Usage Examples Of Adldap\Query\Builder::whereHas