Re: [sqlalchemy] session merge sets missing children foreign keys to null

2021-12-09 Thread Gabriel Smith
Thank you for the quick and clear answer that solves the test case. I've applied the same approach to the issue in our current codebase and it completely fixed the issue. You're the best! On Wednesday, December 8, 2021 at 1:48:45 PM UTC-6 Mike Bayer wrote: > > > On Wed, Dec 8, 2021, at 10:38

Re: [sqlalchemy] session merge sets missing children foreign keys to null

2021-12-08 Thread Mike Bayer
On Wed, Dec 8, 2021, at 10:38 AM, Gabriel Smith wrote: > Hi, I'm a recent adopter of sqlalchemy, starting fresh with all the 2.0 > stuff. Thanks so much for the entire teams hard work! great! > > I have a small issue with the merge functionality and it could honestly just > be a