public function duplicate($id)
    {
        return $this->_table->save($this->duplicateEntity($id), $this->getConfig('saveOptions') + ['associated' => $this->getConfig('contain')]);
    }
public function duplicate($id)
    {
        return $this->_table->save($this->duplicateEntity($id), $this->getConfig('saveOptions') + ['associated' => $this->getConfig('contain')]);
    }
public function duplicate ( $ id ) { return $ this -> _table -> save ( $ this -> duplicateEntity ( $ id ) , $ this -> getConfig ( 'saveOptions' ) + [ 'associated' => $ this -> getConfig ( 'contain' ) ] ) ; }
Duplicate record.

@param int|string $id Id of entity to duplicate.
@return \Cake\Datasource\EntityInterface New entity or false on failure
Duplicate record .