admin icon indicating copy to clipboard operation
admin copied to clipboard

Infinite loop for resources with circular dependencies

Open ibrt opened this issue 7 years ago • 2 comments

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.

ibrt avatar Jun 30 '17 20:06 ibrt

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

Raggaer avatar Sep 01 '17 17:09 Raggaer

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

ko80 avatar Dec 05 '18 08:12 ko80