Fix cloning issues with ObjectCollection

This commit is contained in:
Matias Griese 2017-05-31 13:34:04 +03:00
parent 673131926a
commit 512aae350e

View File

@ -32,10 +32,6 @@ class ObjectCollection extends ArrayCollection implements ObjectCollectionInterf
parent::__construct($elements);
$this->key = $key !== null ? $key : $this->getKey();
if ($this->key === null) {
throw new \InvalidArgumentException('Object cannot be created without assigning a key');
}
}
/**