Browse Source

moved db interfaces and traits back to yii/db.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
42a58870fe
  1. 2
      framework/yii/data/ActiveDataProvider.php
  2. 2
      framework/yii/db/ActiveQuery.php
  3. 3
      framework/yii/db/ActiveQueryInterface.php
  4. 4
      framework/yii/db/ActiveQueryTrait.php
  5. 1
      framework/yii/db/ActiveRecord.php
  6. 2
      framework/yii/db/ActiveRelation.php
  7. 2
      framework/yii/db/ActiveRelationInterface.php
  8. 3
      framework/yii/db/ActiveRelationTrait.php

2
framework/yii/data/ActiveDataProvider.php

@ -8,7 +8,7 @@
namespace yii\data; namespace yii\data;
use Yii; use Yii;
use yii\ar\ActiveQueryInterface; use yii\db\ActiveQueryInterface;
use yii\base\InvalidConfigException; use yii\base\InvalidConfigException;
use yii\base\Model; use yii\base\Model;
use yii\db\Connection; use yii\db\Connection;

2
framework/yii/db/ActiveQuery.php

@ -7,8 +7,6 @@
*/ */
namespace yii\db; namespace yii\db;
use yii\ar\ActiveQueryInterface;
use yii\ar\ActiveQueryTrait;
/** /**
* ActiveQuery represents a DB query associated with an Active Record class. * ActiveQuery represents a DB query associated with an Active Record class.

3
framework/yii/ar/ActiveQueryInterface.php → framework/yii/db/ActiveQueryInterface.php

@ -5,8 +5,7 @@
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
namespace yii\ar; namespace yii\db;
use yii\db\QueryInterface;
/** /**
* ActiveQueryInterface defines the common interface to be implemented by active record query classes. * ActiveQueryInterface defines the common interface to be implemented by active record query classes.

4
framework/yii/ar/ActiveQueryTrait.php → framework/yii/db/ActiveQueryTrait.php

@ -5,9 +5,7 @@
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
namespace yii\ar; namespace yii\db;
use yii\db\ActiveRecord;
/** /**
* ActiveQueryTrait implements the common methods and properties for active record query classes. * ActiveQueryTrait implements the common methods and properties for active record query classes.

1
framework/yii/db/ActiveRecord.php

@ -8,7 +8,6 @@
namespace yii\db; namespace yii\db;
use yii\ar\ActiveRelationInterface;
use yii\base\InvalidConfigException; use yii\base\InvalidConfigException;
use yii\base\Model; use yii\base\Model;
use yii\base\InvalidParamException; use yii\base\InvalidParamException;

2
framework/yii/db/ActiveRelation.php

@ -7,8 +7,6 @@
*/ */
namespace yii\db; namespace yii\db;
use yii\ar\ActiveRelationInterface;
use yii\ar\ActiveRelationTrait;
/** /**
* ActiveRelation represents a relation between two Active Record classes. * ActiveRelation represents a relation between two Active Record classes.

2
framework/yii/ar/ActiveRelationInterface.php → framework/yii/db/ActiveRelationInterface.php

@ -5,7 +5,7 @@
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
namespace yii\ar; namespace yii\db;
/** /**
* ActiveRelationInterface defines the common interface to be implemented by active record relation classes. * ActiveRelationInterface defines the common interface to be implemented by active record relation classes.

3
framework/yii/ar/ActiveRelationTrait.php → framework/yii/db/ActiveRelationTrait.php

@ -5,10 +5,9 @@
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
namespace yii\ar; namespace yii\db;
use yii\base\InvalidConfigException; use yii\base\InvalidConfigException;
use yii\db\ActiveRecord;
/** /**
* ActiveRelationTrait implements the common methods and properties for active record relation classes. * ActiveRelationTrait implements the common methods and properties for active record relation classes.
Loading…
Cancel
Save