src/Model/Model.php
public function toClone()
    {
        $attributes = $this->toArray(false);

        unset($attributes['id']);
        unset($attributes['_id']);

        return $this->create($attributes, false);
    }
public function toClone()
    {
        $attributes = $this->toArray(false);

        unset($attributes['id']);
        unset($attributes['_id']);

        return $this->create($attributes, false);
    }
public function toClone ( ) { $ attributes = $ this -> toArray ( false ) ; unset ( $ attributes [ 'id' ] ) ; unset ( $ attributes [ '_id' ] ) ; return $ this -> create ( $ attributes , false ) ; }
Create clone this model.

@return Model
Create clone this model .