`Doctrine\ORM\UnitOfWork#createEntity()` should always return an object