From 9c921da89125fb3705e0450636524a025b2b7b7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20G=C3=BCntner?= Date: Thu, 18 Dec 2025 17:21:08 +0100 Subject: [PATCH] fix: do not stop on the first instance when doing m2m eager loading fixes #1465 --- templates/main/09_relationship_to_many_eager.go.tpl | 2 -- 1 file changed, 2 deletions(-) diff --git a/templates/main/09_relationship_to_many_eager.go.tpl b/templates/main/09_relationship_to_many_eager.go.tpl index f170ff33..ebdd1faa 100644 --- a/templates/main/09_relationship_to_many_eager.go.tpl +++ b/templates/main/09_relationship_to_many_eager.go.tpl @@ -175,7 +175,6 @@ func ({{$ltable.DownSingular}}L) Load{{$relAlias.Local}}({{if $.NoContext}}e boi } foreign.R.{{$relAlias.Foreign}} = append(foreign.R.{{$relAlias.Foreign}}, local) {{end -}} - break } } } @@ -194,7 +193,6 @@ func ({{$ltable.DownSingular}}L) Load{{$relAlias.Local}}({{if $.NoContext}}e boi } foreign.R.{{$relAlias.Foreign}} = local {{end -}} - break } } }