DBFlow icon indicating copy to clipboard operation
DBFlow copied to clipboard

ForeignKeyContainer not serializable

Open OptimistNot opened this issue 11 years ago • 1 comments

it seems like ForeignKeyContainer is not serializable as when i try to start activity with model that has foreign key container it gives me "java.io.NotSerializableException: com.raizlabs.android.dbflow.structure.container.ForeignKeyContainer", any solution? Thank you!

OptimistNot avatar Apr 08 '15 15:04 OptimistNot

I wouldn't serialize it. Rather pass the primary key through and requery to model.

On Wed, Apr 8, 2015 at 11:06 AM, OptimistNot [email protected] wrote:

it seems like ForeignKeyContainer is not serializable as when i try to start activity with model that has foreign key container it gives me "java.io.NotSerializableException: com.raizlabs.android.dbflow.structure.container.ForeignKeyContainer", any solution? Thank you!

— Reply to this email directly or view it on GitHub https://github.com/Raizlabs/DBFlow/issues/187.

Andrew Grosner, Android Developer

Mobile Strategy, Design & Development

www.raizlabs.com | Check my calendar https://www.google.com/calendar/[email protected]&ctz=America/New_York&mode=WEEK | @agrosner http://www.twitter.com/agrosner | 716-472-5075 [image: Raizlabs]

agrosner avatar Apr 08 '15 19:04 agrosner