src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/defaultsite/Entity/PageParts/UspPagePart.php
public function deepClone()
    {
        $items = $this->getItems();
        $this->items = new ArrayCollection();
        foreach ($items as $item) {
            $cloneItem = clone $item;
            $this->addItem($cloneItem);
        }
    }
public function deepClone()
    {
        $items = $this->getItems();
        $this->items = new ArrayCollection();
        foreach ($items as $item) {
            $cloneItem = clone $item;
            $this->addItem($cloneItem);
        }
    }
public function deepClone ( ) { $ items = $ this -> getItems ( ) ; $ this -> items = new ArrayCollection ( ) ; foreach ( $ items as $ item ) { $ cloneItem = clone $ item ; $ this -> addItem ( $ cloneItem ) ; } }
When cloning this entity, we must also clone all entities in the ArrayCollection
When cloning this entity we must also clone all entities in the ArrayCollection