Update library/Bgy/Doctrine/EntitySerializer.php