Implemented Doctrine serializer