summaryrefslogtreecommitdiff
path: root/examples/inheritance/polymorph.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-03-24 19:19:03 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2010-03-24 19:19:03 -0400
commitc6bceb77754bd72c462ce146f706758d1ad3da4a (patch)
tree0b9c935221c572bd75f3c88fe849fb17595e0a79 /examples/inheritance/polymorph.py
parent1675811029553501bb23084604c64d974dfe739c (diff)
downloadsqlalchemy-c6bceb77754bd72c462ce146f706758d1ad3da4a.tar.gz
- converted all lazy=True|False|None to 'select'|'joined'|'noload'
- converted all eager to joined in examples - fixed beaker/advanced.py to reference RelationshipCache
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()