Fixing addIndex/ addUniqueIndex when using doctrine 2.5.