Doctrine\ORM\UnitOfWork::markReadOnly
Marks an entity as read-only so that it will not be considered for updates during UnitOfWork#commit().
This operation cannot be undone as some parts of the UnitOfWork now keep gathering information on this object that might be necessary to perform a correct update.
Signature
Parameters
$object
— object
Returns
- void