add Query::execute()

This commit is contained in:
evgen-d 2014-10-08 15:33:48 +04:00
parent c3b9d78427
commit be068d5039

View File

@ -81,6 +81,17 @@ class Query extends Component implements QueryInterface
return $this->getStatement($options, $db);
}
public function execute($aql, $bindValues = [], $params = [])
{
$options = [
'query' => $aql,
'bindValues' => $bindValues,
];
$options = ArrayHelper::merge($params, $options);
$statement = $this->getStatement($options);
$statement->execute();
}
/**
* @param $fields
* @return $this