Re: [sqlalchemy] Persisting an object with cascading relationships

2011-11-18 Thread Alex Grönholm
How silly of me not to have checked that in the docs. Rather embarrassing really :) Thanks. -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To view this discussion on the web visit https://groups.google.com/d/msg/sqlalchemy/-/rTk1ea1hvrgJ. To po

Re: [sqlalchemy] Persisting an object with cascading relationships

2011-11-18 Thread Michael Bayer
On Nov 18, 2011, at 6:56 AM, Alex Grönholm wrote: > My use case is the following: each SalesItem requires a calcPriceList and a > salesPriceList (of type PriceList) attached to it. > For that, SalesItem has two fields: > calcpricelist_id = Column(BigInteger, ForeignKey(PriceList.id), > null

[sqlalchemy] Persisting an object with cascading relationships

2011-11-18 Thread Alex Grönholm
My use case is the following: each SalesItem requires a calcPriceList and a salesPriceList (of type PriceList) attached to it. For that, SalesItem has two fields: calcpricelist_id = Column(BigInteger, ForeignKey(PriceList.id), nullable=False) salespricelist_id = Column(BigInteger, Foreign