Doctrine 2 - ORM

Proxy getId not invoke convertToPHPValue on custom type