Browse Source

...

tags/2.0.0-beta
Qiang Xue 13 years ago
parent
commit
e281b402b6
  1. 2
      framework/db/dao/BaseQuery.php
  2. 2
      tests/unit/data/ar/Customer.php

2
framework/db/dao/BaseQuery.php

@ -16,7 +16,7 @@ namespace yii\db\dao;
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
class BaseQuery extends \yii\base\Object
class BaseQuery extends \yii\base\Component
{
/**
* @var string|array the columns being selected. This refers to the SELECT clause in a SQL

2
tests/unit/data/ar/Customer.php

@ -25,7 +25,7 @@ class Customer extends ActiveRecord
{
return array(
'active' => function($q) {
return $q->andWhere('@.`status` = ' . Customer::STATUS_ACTIVE);
return $q->andWhere('@.`status` = ' . self::STATUS_ACTIVE);
},
);
}

Loading…
Cancel
Save