Skip to content

[10.x] Ensure lazy-loading for trashed morphTo relations works - #50176

Merged
taylorotwell merged 1 commit into
laravel:10.xfrom
nuernbergerA:regression-lazyloading-deleted-morph-to
Feb 21, 2024
Merged

[10.x] Ensure lazy-loading for trashed morphTo relations works#50176
taylorotwell merged 1 commit into
laravel:10.xfrom
nuernbergerA:regression-lazyloading-deleted-morph-to

Conversation

@nuernbergerA

Copy link
Copy Markdown
Contributor

Since #50124 its no longer possible to lazy-load trashed morphTo relations.

Once the Conditionable trait is removed from the Relation class all works fine.

This PR covers this scenario with a test.

@driesvints

Copy link
Copy Markdown
Member

cc @DarkGhostHunter

@taylorotwell
taylorotwell merged commit abeec17 into laravel:10.x Feb 21, 2024
@DarkGhostHunter

Copy link
Copy Markdown
Contributor

Wow, my first PR that breaks everyone's Laravel installation! 😅

The issue then still persists. I guess I'll have to investigate further.

@nuernbergerA
nuernbergerA deleted the regression-lazyloading-deleted-morph-to branch February 21, 2024 16:31
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.

Undefined property: Illuminate\\Database\\Eloquent\\Relations\\HasMany::$orWhere

4 participants