From 6791fdf1c44e0e9a8e6bf4d0bb6ca0fabe560773 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Wed, 6 Jul 2016 16:22:25 +0200 Subject: [PATCH] revert ActiveRelationTrait abstract methods this does not seem to work the same way as interfaces: ``` PHP Fatal error: Declaration of yii\db\ActiveRelationTrait::andWhere($condition) must be compatible with yii\db\Query::andWhere($condition, $params = Array) ``` --- framework/db/ActiveRelationTrait.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/framework/db/ActiveRelationTrait.php b/framework/db/ActiveRelationTrait.php index d8e0a7a..859310b 100644 --- a/framework/db/ActiveRelationTrait.php +++ b/framework/db/ActiveRelationTrait.php @@ -536,16 +536,4 @@ trait ActiveRelationTrait return $this->asArray()->all($primaryModel::getDb()); } - - /** - * @see ActiveQueryInterface::andWhere() - * @return ActiveQueryInterface - */ - abstract public function andWhere($condition); - - /** - * @see ActiveQueryInterface::asArray() - * @return ActiveQueryInterface - */ - abstract public function asArray($value = true); }