Example #1
0
 /**
  * @param mixed $model The detached model to merge into the persistence context.
  *
  * @return object The managed copy of the model
  *
  * @throws \RuntimeException When manager is closed
  */
 public function merge($model)
 {
     $this->errorIfClosed();
     return $this->unitOfWork->merge($model);
 }