$entity = new WhateverEntity;
$repository->attach($entity);
$repository->clean();
$repository->flush(); // entita se uloží, ačkoliv by neměla
$entity = $repository->getById(1);
$entity->someParam = "whatever";
$repository->clean();
$repository->flush(); // entita se uloží, ačkoliv by neměla