Doctrine 2 - ORM

Xmldriver does not convert the version field to boolean but keeps it as a SimpleXMLElement which breaks serialization