Skip to content

Conversation

@Samuell1
Copy link
Member

Override getRelationValue() to integrate with Laravel's lazy loading prevention system while using October Rain's property-based relation definitions (hasRelation instead of isRelation).

Supports:

  • Model::preventLazyLoading()
  • $model->withRelationshipAutoloading()
  • Model::handleLazyLoadingViolationUsing()
  • attemptToAutoloadRelation() for automatic eager loading

Override getRelationValue() to integrate with Laravel's lazy loading
prevention system while using October Rain's property-based relation
definitions (hasRelation instead of isRelation).

Supports:
- Model::preventLazyLoading()
- $model->withRelationshipAutoloading()
- Model::handleLazyLoadingViolationUsing()
- attemptToAutoloadRelation() for automatic eager loading
@Samuell1 Samuell1 marked this pull request as ready for review December 31, 2025 07:34
@daftspunk daftspunk merged commit 8a26416 into octobercms:develop Jan 4, 2026
0 of 3 checks passed
@Samuell1 Samuell1 deleted the feature/model-lazy-loading-prevention branch January 4, 2026 12:21
@Samuell1 Samuell1 restored the feature/model-lazy-loading-prevention branch January 4, 2026 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants