Klimov Paul
11 years ago
5 changed files with 1225 additions and 43 deletions
@ -0,0 +1,22 @@ |
|||||||
|
<?php |
||||||
|
/** |
||||||
|
* @link http://www.yiiframework.com/ |
||||||
|
* @copyright Copyright (c) 2008 Yii Software LLC |
||||||
|
* @license http://www.yiiframework.com/license/ |
||||||
|
*/ |
||||||
|
|
||||||
|
namespace yii\mongo; |
||||||
|
|
||||||
|
use yii\db\ActiveQueryInterface; |
||||||
|
use yii\db\ActiveQueryTrait; |
||||||
|
|
||||||
|
/** |
||||||
|
* Class ActiveQuery |
||||||
|
* |
||||||
|
* @author Paul Klimov <klimov.paul@gmail.com> |
||||||
|
* @since 2.0 |
||||||
|
*/ |
||||||
|
class ActiveQuery extends Query implements ActiveQueryInterface |
||||||
|
{ |
||||||
|
use ActiveQueryTrait; |
||||||
|
} |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,22 @@ |
|||||||
|
<?php |
||||||
|
/** |
||||||
|
* @link http://www.yiiframework.com/ |
||||||
|
* @copyright Copyright (c) 2008 Yii Software LLC |
||||||
|
* @license http://www.yiiframework.com/license/ |
||||||
|
*/ |
||||||
|
|
||||||
|
namespace yii\mongo; |
||||||
|
|
||||||
|
use yii\db\ActiveRelationInterface; |
||||||
|
use yii\db\ActiveRelationTrait; |
||||||
|
|
||||||
|
/** |
||||||
|
* ActiveRelation represents a relation to Mongo Active Record class. |
||||||
|
* |
||||||
|
* @author Paul Klimov <klimov.paul@gmail.com> |
||||||
|
* @since 2.0 |
||||||
|
*/ |
||||||
|
class ActiveRelation extends ActiveQuery implements ActiveRelationInterface |
||||||
|
{ |
||||||
|
use ActiveRelationTrait; |
||||||
|
} |
@ -1,37 +0,0 @@ |
|||||||
<?php |
|
||||||
/** |
|
||||||
* @link http://www.yiiframework.com/ |
|
||||||
* @copyright Copyright (c) 2008 Yii Software LLC |
|
||||||
* @license http://www.yiiframework.com/license/ |
|
||||||
*/ |
|
||||||
|
|
||||||
namespace yii\mongo; |
|
||||||
|
|
||||||
use yii\base\Object; |
|
||||||
|
|
||||||
/** |
|
||||||
* Class QueryBuilder |
|
||||||
* |
|
||||||
* @author Paul Klimov <klimov.paul@gmail.com> |
|
||||||
* @since 2.0 |
|
||||||
*/ |
|
||||||
class QueryBuilder extends Object |
|
||||||
{ |
|
||||||
/** |
|
||||||
* @var Connection the Mongo connection. |
|
||||||
*/ |
|
||||||
public $db; |
|
||||||
|
|
||||||
/** |
|
||||||
* Constructor. |
|
||||||
* @param Connection $connection the Mongo connection. |
|
||||||
* @param array $config name-value pairs that will be used to initialize the object properties |
|
||||||
*/ |
|
||||||
public function __construct($connection, $config = []) |
|
||||||
{ |
|
||||||
$this->db = $connection; |
|
||||||
parent::__construct($config); |
|
||||||
} |
|
||||||
|
|
||||||
// TODO |
|
||||||
} |
|
Loading…
Reference in new issue