PIM-2368 : fix mass delete (ORm)