改名
This commit is contained in:
@@ -317,9 +317,10 @@ class ActiveQuery extends Component
|
|||||||
*/
|
*/
|
||||||
public function exists()
|
public function exists()
|
||||||
{
|
{
|
||||||
return (bool)$this->modelClass::getDb()
|
$column = $this->modelClass::getDb()
|
||||||
->createCommand($this->queryBuilder())
|
->createCommand($this->queryBuilder())
|
||||||
->fetchColumn();
|
->fetchColumn();
|
||||||
|
return $column !== false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user