Doctrine 2 - ORM

Example code does not reflect real code