Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration return error #10

Open
elfarqy opened this issue Jun 21, 2017 · 1 comment
Open

Migration return error #10

elfarqy opened this issue Jun 21, 2017 · 1 comment

Comments

@elfarqy
Copy link

elfarqy commented Jun 21, 2017

I got this error when running migration to create collection using this plugin. I think Query.php class need to implement interface from yii2.

PHP Fatal Error 'yii\base\ErrorException' with message 'Class devgroup\arangodb\Query contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (yii\db\QueryInterface::emulateExecution)'

And can you provide an example migration class? Because in yii2 there is 2 style to create migration, by extend components\Migration and db\Migration.

@danielemay
Copy link

i solved modifying
vendor/devgroup/yii2-arangodb/Query.php

adding inside the class :

public $emulateExecution = false;

/**
* Porting of emulateExecution from yii2 DB Query
*
* @var boolean whether to emulate the actual query execution, returning empty or false results.
* @see emulateExecution()
* @SInCE 2.0.11
*/
public function emulateExecution($value = true)
{
$this->emulateExecution = $value;
return $this;
}

bye ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants