Doctrine 2 - ORM

Generated Ids with Sequence/Auto Increment Generators not always casted to int