florent37 / Freezer

A simple & fluent Android ORM, how can it be easier ? RxJava2 compatible
Apache License 2.0
328 stars 44 forks source link

relationship to same object #44

Closed croccio closed 6 years ago

croccio commented 6 years ago

i've this DB ############ Condiments id name priceToRemove priceToAdd ############

############ Category id name ############

############ Products id name price condiments (list) category (object) ############

so I create a category > Pizza than create another category > Panzerotti

than create condiment > mozzarella than another condiment > pomodoro

than create product > Margherita with category "pizza" and condiments "mozzarella, pomodoro" than create another product > Panzerotto fritto with category "panzerotto" and condiments "pomodoro"

I get this error

attempt to re-open an already-closed object: SQLiteDatabase: /data/data/it.croccio.gesty/databases/database.db

@florent37