Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.3] Instance ids are passed to the ModelNotFoundException #15896

Merged
merged 4 commits into from
Oct 13, 2016

Conversation

peric
Copy link
Contributor

@peric peric commented Oct 13, 2016

In order to have more descriptive exception messages, instance ids are passed to the ModelNotFoundException.

@peric
Copy link
Contributor Author

peric commented Oct 13, 2016

Let me know if this makes sense to you so I can fix the tests afterwards.

https://travis-ci.org/laravel/framework/jobs/167450774

@taylorotwell taylorotwell merged commit d104286 into laravel:5.3 Oct 13, 2016
@GrahamCampbell GrahamCampbell changed the title Instance ids are passed to the ModelNotFoundException [5.3] Instance ids are passed to the ModelNotFoundException Oct 13, 2016
@torkiljohnsen
Copy link

@peric This breaks backwards compatibility for those of us throwing ModelNotFoundException in our code.

@peric
Copy link
Contributor Author

peric commented Oct 19, 2016

Yes, that can became an issue - but can be probably solved by setting an $instanceId in setModel method as optional.

Since it's already merged, maybe @taylorotwell can give a word on it?

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