issue #22534: Remove obsolete orm. Do not make model dirty when a new relation is created.