added dismax
doctrine 2.2 compatibility