Browse Source

phpdoc addition

tags/2.0.0-beta
Alexander Makarov 13 years ago
parent
commit
c6db38ff26
  1. 4
      framework/db/ar/ActiveQuery.php

4
framework/db/ar/ActiveQuery.php

@ -94,6 +94,10 @@ class ActiveQuery extends BaseActiveQuery implements \IteratorAggregate, \ArrayA
return $this->createFinder()->find($this, true); return $this->createFinder()->find($this, true);
} }
/**
* Executes query and returns if matching row exists in the table.
* @return bool if row exists in the table.
*/
public function exists() public function exists()
{ {
return $this->select(array(new Expression('1')))->value() !== false; return $this->select(array(new Expression('1')))->value() !== false;

Loading…
Cancel
Save