diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-03-24 19:19:03 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-03-24 19:19:03 -0400 |
commit | c6bceb77754bd72c462ce146f706758d1ad3da4a (patch) | |
tree | 0b9c935221c572bd75f3c88fe849fb17595e0a79 /examples/inheritance/polymorph.py | |
parent | 1675811029553501bb23084604c64d974dfe739c (diff) | |
download | sqlalchemy-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.py | 2 |
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() |