`EntityCollection` помечен для переделки
parent
b39e76f312
commit
b57acf8b05
|
@ -27,6 +27,8 @@ abstract class EntityCollection extends Collection
|
||||||
public function __construct($items = [])
|
public function __construct($items = [])
|
||||||
{
|
{
|
||||||
$this->checkCount($items);
|
$this->checkCount($items);
|
||||||
|
//TODO следует переделать EntityCollection в обёртку над Collection,
|
||||||
|
// ибо ломает методы Collection, которые return new static
|
||||||
$this->checkItemsClasses($items);
|
$this->checkItemsClasses($items);
|
||||||
parent::__construct($items);
|
parent::__construct($items);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue