Skip to content

fixed getRelated already fetched relations#16449

Merged
niden merged 5 commits intophalcon:5.0.xfrom
rudiservo:i16409
Apr 24, 2026
Merged

fixed getRelated already fetched relations#16449
niden merged 5 commits intophalcon:5.0.xfrom
rudiservo:i16409

Conversation

@rudiservo
Copy link
Copy Markdown
Contributor

Hello!

In raising this pull request, I confirm the following:

  • I have read and understood the Contributing Guidelines
  • I have checked that another pull request for this purpose does not exist
  • I wrote some tests for this PR
  • I have updated the relevant CHANGELOG
  • I have created a PR for the documentation about this change

Small description of change:
GetRelated should reuse already fetched relation inside the model, avoiding more hits to the database.
If devs need fresh data they can use Model::refresh and with the PR also ResultSet::refresh.

Thanks

@niden niden added bug A bug report status: medium Medium 5.0 The issues we want to solve in the 5.0 release labels Apr 24, 2026
@niden niden merged commit f34d02d into phalcon:5.0.x Apr 24, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

5.0 The issues we want to solve in the 5.0 release bug A bug report status: medium Medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants