Doctrine 2 - ORM

[GH-565] Removed an unused local variable.