src/Item.php
public function copy()
    {
        // Fetch data, clean undesired fields and return the new item.
        $arrNewData = $this->arrData;
        unset($arrNewData['id']);
        unset($arrNewData['tstamp']);
        unset($arrNewData['vargroup']);
        return new Item($this->getMetaModel(), $arrNewData, $this->dispatcher);
    }
public function copy()
    {
        // Fetch data, clean undesired fields and return the new item.
        $arrNewData = $this->arrData;
        unset($arrNewData['id']);
        unset($arrNewData['tstamp']);
        unset($arrNewData['vargroup']);
        return new Item($this->getMetaModel(), $arrNewData, $this->dispatcher);
    }
Returns a new item containing the same values as this item but no id.

This is useful when creating new items that shall be based upon another item.

@return IItem the new copy.