1
0
mirror of synced 2025-01-18 06:21:40 +03:00

Coding style fixes.

This commit is contained in:
Guilherme Blanco 2012-03-15 01:15:47 -04:00
parent c3291f8f24
commit a16ca32981

View File

@ -37,7 +37,7 @@ use Doctrine\ORM\Mapping\ClassMetadata,
* @author Konsta Vesterinen <kvesteri@cc.hut.fi>
* @author Roman Borschel <roman@code-factory.org>
* @author Giorgio Sironi <piccoloprincipeazzurro@gmail.com>
* @todo Design for inheritance to allow custom implementations?
* @todo Design for inheritance to allow custom implementations?
*/
final class PersistentCollection implements Collection
{
@ -775,12 +775,15 @@ final class PersistentCollection implements Collection
public function __clone()
{
$this->initialize();
$this->owner = null;
if (is_object($this->coll)) {
$this->coll = clone $this->coll;
}
$this->snapshot = array();
$this->changed();
}
}