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