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

Unpersisted proxy #7

Merged
merged 6 commits into from
Jun 19, 2020
Merged

Unpersisted proxy #7

merged 6 commits into from
Jun 19, 2020

Conversation

kbond
Copy link
Member

@kbond kbond commented Jun 19, 2020

  • remove Factory::instantiate(), Factory::instantiateMany(), use $factory->withoutPersisting()->create()/createMany()
  • Factory::create() always returns Proxy
  • Factory::createMany() always returns Proxy[]
  • Proxy has persisted and unpersisted states
  • left instantiate(), instantiate_many() helper functions
  • Factory::afterPersist() callbacks can take the Proxy or the wrapped object if it is typehinted

@kbond kbond mentioned this pull request Jun 19, 2020
24 tasks
@kbond kbond merged commit 29115d8 into refactor Jun 19, 2020
@kbond kbond deleted the unpersisted-proxy branch June 19, 2020 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant