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

Create test: insert into related entity with reloading #89

Closed
romaninsh opened this issue Aug 13, 2016 · 1 comment
Closed

Create test: insert into related entity with reloading #89

romaninsh opened this issue Aug 13, 2016 · 1 comment
Assignees

Comments

@romaninsh
Copy link
Member

  1. Create model instance
  2. Add condition
  3. reference hasOne() relation
  4. make sure reloading is ON for this related model
  5. save new record (it will be reloaded)
  6. main model instance should contain id auto-filled.

The point of this test is to make sure that insert works well and not failing randomly. Note that relations in AD are optional.

@romaninsh romaninsh added this to the 1.1.x milestone Sep 19, 2016
@romaninsh
Copy link
Member Author

forgot to close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants