Doctrine\ORM\UnitOfWork::refresh
Refreshes the state of the given entity from the database, overwriting any local, unpersisted changes.
Signature
Parameters
$entity
— object- The entity to refresh.
Errors/Exceptions
-
InvalidArgumentException
- If the entity is not MANAGED.