issue #19827: Fix project orm to refer to view, not table.