Browse Source

renamed AR trait classes

tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
b8e31d50bb
  1. 2
      framework/yii/ar/ActiveQueryTrait.php
  2. 2
      framework/yii/ar/ActiveRelationTrait.php
  3. 2
      framework/yii/db/ActiveQuery.php
  4. 2
      framework/yii/db/ActiveRelation.php
  5. 2
      framework/yii/db/Query.php
  6. 2
      framework/yii/db/QueryTrait.php

2
framework/yii/ar/ActiveQuery.php → framework/yii/ar/ActiveQueryTrait.php

@ -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.

2
framework/yii/ar/ActiveRelation.php → framework/yii/ar/ActiveRelationTrait.php

@ -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.

2
framework/yii/db/ActiveQuery.php

@ -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.

2
framework/yii/db/ActiveRelation.php

@ -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.

2
framework/yii/db/Query.php

@ -37,7 +37,7 @@ use yii\base\Component;
*/ */
class Query extends Component class Query extends Component
{ {
use BaseQuery; use QueryTrait;
/** /**
* Sort ascending * Sort ascending

2
framework/yii/db/BaseQuery.php → framework/yii/db/QueryTrait.php

@ -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.
Loading…
Cancel
Save