Commit b8e31d50 by Carsten Brandt

renamed AR trait classes

parent 3130aadb
...@@ -42,7 +42,7 @@ use yii\db\ActiveRecord; ...@@ -42,7 +42,7 @@ use yii\db\ActiveRecord;
* @author Carsten Brandt <mail@cebe.cc> * @author Carsten Brandt <mail@cebe.cc>
* @since 2.0 * @since 2.0
*/ */
trait ActiveQuery trait ActiveQueryTrait
{ {
/** /**
* @var string the name of the ActiveRecord class. * @var string the name of the ActiveRecord class.
......
...@@ -25,7 +25,7 @@ use yii\db\ActiveRecord; ...@@ -25,7 +25,7 @@ use yii\db\ActiveRecord;
* @author Qiang Xue <qiang.xue@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0 * @since 2.0
*/ */
trait ActiveRelation trait ActiveRelationTrait
{ {
/** /**
* @var boolean whether this relation should populate all query results into AR instances. * @var boolean whether this relation should populate all query results into AR instances.
......
...@@ -46,7 +46,7 @@ namespace yii\db; ...@@ -46,7 +46,7 @@ namespace yii\db;
*/ */
class ActiveQuery extends Query class ActiveQuery extends Query
{ {
use \yii\ar\ActiveQuery; use \yii\ar\ActiveQueryTrait;
/** /**
* @var string the SQL statement to be executed for retrieving AR records. * @var string the SQL statement to be executed for retrieving AR records.
......
...@@ -28,7 +28,7 @@ namespace yii\db; ...@@ -28,7 +28,7 @@ namespace yii\db;
*/ */
class ActiveRelation extends ActiveQuery class ActiveRelation extends ActiveQuery
{ {
use \yii\ar\ActiveRelation; use \yii\ar\ActiveRelationTrait;
/** /**
* Specifies the pivot table. * Specifies the pivot table.
......
...@@ -37,7 +37,7 @@ use yii\base\Component; ...@@ -37,7 +37,7 @@ use yii\base\Component;
*/ */
class Query extends Component class Query extends Component
{ {
use BaseQuery; use QueryTrait;
/** /**
* Sort ascending * Sort ascending
......
...@@ -33,7 +33,7 @@ const SORT_DESC = true; ...@@ -33,7 +33,7 @@ const SORT_DESC = true;
* @author Carsten Brandt <mail@cebe.cc> * @author Carsten Brandt <mail@cebe.cc>
* @since 2.0 * @since 2.0
*/ */
trait BaseQuery trait QueryTrait
{ {
/** /**
* @var string|array query condition. This refers to the WHERE clause in a SQL statement. * @var string|array query condition. This refers to the WHERE clause in a SQL statement.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment