diff --git a/framework/db/ar/ActiveQuery.php b/framework/db/ar/ActiveQuery.php index 2f48b76..a3ff65e 100644 --- a/framework/db/ar/ActiveQuery.php +++ b/framework/db/ar/ActiveQuery.php @@ -94,6 +94,10 @@ class ActiveQuery extends BaseActiveQuery implements \IteratorAggregate, \ArrayA 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() { return $this->select(array(new Expression('1')))->value() !== false;