0.2.8 does a more complete check for orphans.  the error means your  
User class has a property "invasives" which has "cascade='all, delete- 
orphan'" on it, and youre trying to create and save an Invasive by  
itself.  youd have to take the "delete-orphan" out of the cascade to  
do that.


On Sep 22, 2006, at 4:16 AM, Julien Cigar wrote:

> Hello,
>
> I upgraded SQLAlchemy today, from version 0.2.7 to 0.2.8
>
> Unfortunately I got an error which I didn't have with 0.2.7:
>
> instance <application.models.invasive.Invasive object at  
> 0xb6b7484c> is
> an unsaved, pending instance and is an orphan (is not attached to any
> parent 'User' instance via that classes' 'invasives' attribute)
>
> The code which fail is a simple .save(obj) ; .flush()
>
> Any idea ?
>
> Thanks
>
> -- 
> Julien Cigar
> Belgian Biodiversity Platform
> http://www.biodiversity.be
> Université Libre de Bruxelles
> Campus de la Plaine CP 257
> Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
> Boulevard du Triomphe, entrée ULB 2
> B-1050 Bruxelles
> office: [EMAIL PROTECTED]
> home: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------- 
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to  
> share your
> opinions on IT & business topics through brief surveys -- and earn  
> cash
> http://www.techsay.com/default.php? 
> page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Sqlalchemy-users mailing list
> Sqlalchemy-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to