Fix for GET casesForUser with the new AinORM.