update remove by Query

This commit is contained in:
evgen-d
2014-08-12 10:33:20 +04:00
parent 1cb6b89d3d
commit 6790b11451
8 changed files with 40 additions and 65 deletions

View File

@@ -3,12 +3,9 @@
namespace devgroup\arangodb;
use Yii;
use yii\base\InvalidConfigException;
use yii\db\ActiveQueryInterface;
use yii\db\ActiveQueryTrait;
use yii\db\ActiveRecordInterface;
use yii\db\ActiveRelationTrait;
use yii\helpers\VarDumper;
use triagens\ArangoDb\Document;
@@ -103,18 +100,6 @@ class ActiveQuery extends Query implements ActiveQueryInterface
return $models;
}
private function prefixKeyColumns($attributes)
{
if ($this instanceof ActiveQuery) {
/* @var $modelClass ActiveRecord */
$modelClass = $this->modelClass;
foreach ($attributes as $i => $attribute) {
$attributes[$i] = "{$modelClass::collectionName()}.$attribute";
}
}
return $attributes;
}
public function all($db = null)
{
$statement = $this->createCommand($db);