Commit e0fcecf2 by Carsten Brandt

implemented base index and data manipulation api

parent 8341a597
...@@ -36,7 +36,7 @@ abstract class ActiveRecord extends \yii\db\ActiveRecord ...@@ -36,7 +36,7 @@ abstract class ActiveRecord extends \yii\db\ActiveRecord
*/ */
public static function getDb() public static function getDb()
{ {
return \Yii::$app->elasticsearch; return \Yii::$app->getComponent('elasticsearch');
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment