qor / admin

Qor Admin - Instantly create a beautiful, cross platform, configurable Admin Interface and API for managing your data in minutes.
917 stars 188 forks source link

Infinite loop for resources with circular dependencies #78

Open ibrt opened 7 years ago

ibrt commented 7 years ago

I have two models with a many-to-many association with back reference (e.g. see http://jinzhu.me/gorm/associations.html#many-to-many, "with back reference"). When I try to create a resource using one of the two models, Admin.RegisterResourceRouters gets into an infinite loop.

Raggaer commented 7 years ago

Probably your model definition is wrong. Post it there so we can help you.

ko80 commented 5 years ago

I have the same issue with two models with many-to-many associations from the GORM example above. @ibrt, Did you overcome the issue?