1
0
mirror of synced 2025-01-29 19:41:45 +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 Konsta Vesterinen <kvesteri@cc.hut.fi>
* @author Roman Borschel <roman@code-factory.org> * @author Roman Borschel <roman@code-factory.org>
* @author Giorgio Sironi <piccoloprincipeazzurro@gmail.com> * @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 final class PersistentCollection implements Collection
{ {
@ -775,12 +775,15 @@ final class PersistentCollection implements Collection
public function __clone() public function __clone()
{ {
$this->initialize(); $this->initialize();
$this->owner = null; $this->owner = null;
if (is_object($this->coll)) { if (is_object($this->coll)) {
$this->coll = clone $this->coll; $this->coll = clone $this->coll;
} }
$this->snapshot = array(); $this->snapshot = array();
$this->changed(); $this->changed();
} }
} }