Convert Extensions module to Doctrine 2