public function SelectQueryExtender::exists
7.x select.inc | public SelectQueryExtender::exists(SelectQueryInterface $select) |
Sets a condition that the specified subquery returns values.
Parameters
SelectQueryInterface $select: The subquery that must contain results.
Return value
QueryConditionInterface The called object.
Overrides QueryConditionInterface::exists
File
- drupal-7.x/
includes/ database/ select.inc, line 808
Class
- SelectQueryExtender
- The base extender class for Select queries.
Code
public function exists(SelectQueryInterface $select) {
$this->query->exists($select);
return $this;
}