Browse Source

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)
```
tags/3.0.0-alpha1
Carsten Brandt 8 years ago
parent
commit
6791fdf1c4
  1. 12
      framework/db/ActiveRelationTrait.php

12
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);
}

Loading…
Cancel
Save