MasoniteFramework / orm

Masonite ORM is a beautiful Python ORM. It's also a nearly drop in replacement of the Orator ORM
https://orm.masoniteproject.com
MIT License
165 stars 48 forks source link

Feature/682 #738

Closed JRubics closed 2 years ago

JRubics commented 2 years ago

Fix new_from_builder using deepcopy but with fixing the infinite recursion

Fixes #682

josephmancuso commented 2 years ago

ugh thanks for fixing this lol. Interesting fix I didn't know __setstate__ was a magic method like this. I have another issue where an object wasn't pickleable. Maybe using these magic methods will fix that issue too 🤔

JRubics commented 2 years ago

I think it is at least worth trying and as I remember there was some magic method for pickling, but don't remember exactly how to use it :slightly_smiling_face: