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.2] getOriginal will return null for newly created models #12945

Closed

Conversation

egeriis
Copy link
Contributor

@egeriis egeriis commented Mar 31, 2016

This is a failing test to verify unexpected behavior.

This is a test which fails as getOriginal will return null for newly created models. This is undocumented and new behavior from 5.1.

I am creating a PR for the test and fix separately, for the curious to verify the failing case.

The reason for the change in behavior is found in Arr::get, where an additional clause has been added in commit 2f4fc2e.

@GrahamCampbell GrahamCampbell changed the title getOriginal will return null for newly created models in 5.2 [5.2] getOriginal will return null for newly created models Mar 31, 2016
@GrahamCampbell
Copy link
Member

Thanks. Replaced by #12946.

@egeriis egeriis deleted the bugfix/get-original-may-return-null-test branch March 31, 2016 12:24
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.

2 participants