libs/Db/Type/DataObject.php
public function merge(array $data)
    {
        if (array_key_exists('_id', $data)) {
            throw new \Exception('Property "_id" is read-only');
        } else {
            $this->import($data);

            parent::merge($data);
        }
    }
public function merge(array $data)
    {
        if (array_key_exists('_id', $data)) {
            throw new \Exception('Property "_id" is read-only');
        } else {
            $this->import($data);

            parent::merge($data);
        }
    }
public function merge ( array $ data ) { if ( array_key_exists ( '_id' , $ data ) ) { throw new \ Exception ( 'Property "_id" is read-only' ) ; } else { $ this -> import ( $ data ) ; parent :: merge ( $ data ) ; } }
Merge specified data into dataobject. Note, that the method will throw an exception, if the data to
merge contains a new object ID.

@param   array                                   $data           Data to merge.
Merge specified data into dataobject . Note that the method will throw an exception if the data to merge contains a new object ID .