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

Shouldn't use original data in postCreate #431

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

duganwdobbs
Copy link

I noticed that the old Revisionable class doesn't have the additional fields functionality, so I didn't add this there. This is a pretty straightforward operation. I'm making the assumption that whatever this trait is included in has a toArray() method, and that method returns an array.

The thought behind this is that during the postCreate function, $this->originalData will always be an empty array. If that is the case, we use $this->toArray(), or the current data.

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.

1 participant