according to PHPDoc this function shall return the entity
Merge pull request #10471 from owncloud/fix-db-mapper-update

according to PHPDoc this function shall return the entity