Re: [sqlalchemy] Simple question about delete-orphan

2011-11-19 Thread Michael Naber
Thanks, Mike. The docs look like they are a little out of date on this. For delete-orphan, they say that Note that this option prevents a pending item of the child’s class from being persisted without a parent present. http://www.sqlalchemy.org/docs/orm/relationships.html#relationships-api On

Re: [sqlalchemy] Simple question about delete-orphan

2011-11-19 Thread Michael Bayer
yup that's wrong, ill add a ticket for that On Nov 19, 2011, at 12:57 PM, Michael Naber wrote: Thanks, Mike. The docs look like they are a little out of date on this. For delete-orphan, they say that Note that this option prevents a pending item of the child’s class from being persisted

[sqlalchemy] Simple question about delete-orphan

2011-11-01 Thread Michael Naber
Quick question: Why am I allowed to persist an address with no person_id? Shouldn't the delete-orphan prohibit this? Thanks, Michael from sqlalchemy import Column, Integer, String, ForeignKey, create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import

Re: [sqlalchemy] Simple question about delete-orphan

2011-11-01 Thread Michael Bayer
On Nov 1, 2011, at 6:48 AM, Michael Naber wrote: Quick question: Why am I allowed to persist an address with no person_id? Shouldn't the delete-orphan prohibit this? This was the behavior up until 0.7, when the decision was reversed - delete-orphan now considers an orphan to be only an