summaryrefslogtreecommitdiff
path: root/examples/inheritance/polymorph.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/inheritance/polymorph.py')
-rw-r--r--examples/inheritance/polymorph.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/inheritance/polymorph.py b/examples/inheritance/polymorph.py
index 3ebcd6efe..7ca207f9f 100644
--- a/examples/inheritance/polymorph.py
+++ b/examples/inheritance/polymorph.py
@@ -61,7 +61,7 @@ mapper(Engineer, engineers, inherits=person_mapper, polymorphic_identity='engine
mapper(Manager, managers, inherits=person_mapper, polymorphic_identity='manager')
mapper(Company, companies, properties={
- 'employees': relationship(Person, lazy=False, backref='company', cascade="all, delete-orphan")
+ 'employees': relationship(Person, lazy='joined', backref='company', cascade="all, delete-orphan")
})
session = create_session()