refactoring

This commit is contained in:
Ilya Rumyancev (MacBook)
2017-04-14 00:44:05 +03:00
parent a3a51c9c10
commit 9f02264965
13 changed files with 70 additions and 80 deletions

View File

@@ -1,6 +1,6 @@
<?php
namespace devgroup\arangodb;
namespace explosivebit\arangodb;
use Yii;
use yii\db\ActiveQueryInterface;
@@ -104,14 +104,14 @@ class ActiveQuery extends Query implements ActiveQueryInterface
{
$statement = $this->createCommand($db);
$token = $this->getRawAql($statement);
Yii::info($token, 'devgroup\arangodb\Query::query');
Yii::info($token, 'explosivebit\arangodb\Query::query');
try {
Yii::beginProfile($token, 'devgroup\arangodb\Query::query');
Yii::beginProfile($token, 'explosivebit\arangodb\Query::query');
$cursor = $statement->execute();
$rows = $cursor->getAll();
Yii::endProfile($token, 'devgroup\arangodb\Query::query');
Yii::endProfile($token, 'explosivebit\arangodb\Query::query');
} catch (\Exception $ex) {
Yii::endProfile($token, 'devgroup\arangodb\Query::query');
Yii::endProfile($token, 'explosivebit\arangodb\Query::query');
throw new \Exception($ex->getMessage(), (int) $ex->getCode(), $ex);
}
if (!empty($rows)) {