Issue #2956556 by johndevman, daffie, Neslee Canil Pinto, dan.munn, aleevas,...
Issue #2956556 by johndevman, daffie, Neslee Canil Pinto, dan.munn, aleevas, dubcanada, alexpott: class isn't set in FETCH_OBJECT when class_name isn't set
(cherry picked from commit b2a10193)