Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix table alias in ar->exists method

  • Loading branch information...
commit 729a333d84b354007f89a0ce531136d229d17017 1 parent 826be39
@s-larionov s-larionov authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  framework/db/ar/CActiveRecord.php
View
2  framework/db/ar/CActiveRecord.php
@@ -1613,7 +1613,7 @@ public function exists($condition='',$params=array())
$this->applyScopes($criteria);
if(empty($criteria->with))
- return $builder->createFindCommand($table,$criteria)->queryRow()!==false;
+ return $builder->createFindCommand($table,$criteria,$this->getTableAlias(false, false))->queryRow()!==false;
else
{
$criteria->select='*';
Please sign in to comment.
Something went wrong with that request. Please try again.