Doctrine\ORM\Persisters\BasicEntityPersister::update
Updates a managed entity. The entity is updated according to its current changeset in the running UnitOfWork. If there is no changeset, nothing is updated.
The data to update is retrieved through . Subclasses that override this method are supposed to obtain the update data in the same way, through . Subclasses are also supposed to take care of versioning when overriding this method, if necessary. The method can be used to apply the data retrieved from on the target tables, thereby optionally applying versioning.
Signature
Parameters
$entity
— object- The entity to update.