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

Add persist() method #57

Merged
merged 26 commits into from
Jun 5, 2017
Merged

Add persist() method #57

merged 26 commits into from
Jun 5, 2017

Conversation

pmjones
Copy link
Contributor

@pmjones pmjones commented May 31, 2017

This PR adds an AbstractMapper::persist() method that will insert/update/delete a Record, and recursively all of its attached relateds. (This is done without infinite recursion.)

Also, the AbstractMapper::insert() and update() methods will auto-link related native and foreign keys on related Records.

Fixes #55.

- 7
- hhvm
- 7.0
- 7.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done; thanks!

@pmjones pmjones merged commit 87ca257 into 1.x Jun 5, 2017
@pmjones pmjones deleted the fix-record-keys branch June 6, 2017 00:51
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.

None yet

2 participants