Skip to content

Fix eager-loaded relations across multiple database connections#256

Merged
techmahedy merged 1 commit intodoppar:3.xfrom
techmahedy:techmahedy-3.x
Apr 25, 2026
Merged

Fix eager-loaded relations across multiple database connections#256
techmahedy merged 1 commit intodoppar:3.xfrom
techmahedy:techmahedy-3.x

Conversation

@techmahedy
Copy link
Copy Markdown
Member

  • Stops builder-side eager loading from forcing the parent model connection onto related model queries.
  • Makes embed() follow the same connection behavior as direct relation access, so related models load from their own configured database.
  • Adds a regression test covering cross-connection eager loading to prevent bindTo relations from resolving against the wrong database.

@techmahedy techmahedy merged commit b0b95b5 into doppar:3.x Apr 25, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant