is this method available on doctrine 2.[1|2] ?