Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[4.2] withTrashed() constraint does not work with morphTo() relations.#4464

Merged
taylorotwell merged 2 commits into
4.2from
unknown repository
May 23, 2014
Merged

[4.2] withTrashed() constraint does not work with morphTo() relations.#4464
taylorotwell merged 2 commits into
4.2from
unknown repository

Conversation

@WaylandAce
Copy link
Copy Markdown
Contributor

No description provided.

@anlutro
Copy link
Copy Markdown
Contributor

anlutro commented May 21, 2014

Assuming $instance is a Model instance, it should be ->newQuery(), not ->query(). Otherwise good!

taylorotwell added a commit that referenced this pull request May 23, 2014
[4.2] withTrashed() constraint does not work with morphTo() relations.
@taylorotwell taylorotwell merged commit 711a627 into laravel:4.2 May 23, 2014
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.

3 participants