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

Correct BelongsTo relation creation #417

Merged

Conversation

090809
Copy link

@090809 090809 commented Jan 26, 2022

Closes: #415
Closes: #412

pallam added 3 commits January 26, 2022 21:36
@090809
Copy link
Author

090809 commented Jan 26, 2022

@shalvah this test case needs to create :inmemory: db with migrations, so it failes. So here I'm stuck

@090809
Copy link
Author

090809 commented Jan 26, 2022

Some nested data loading (in factory configuring) is workaround about #321 problem, so we can fix it clearly with real call of ->load($relations) in $factory->create() (tested it with supposed test)

@shalvah
Copy link
Contributor

shalvah commented Jan 28, 2022

Hmm, I'll take a look at this and see what I can do.

@shalvah
Copy link
Contributor

shalvah commented Jan 30, 2022

Well done! I see you've put in a lot of work on the tests, but your change seems pretty innocuous, so I think we can live without the tests.

@shalvah shalvah merged commit d97ce29 into knuckleswtf:master Jan 30, 2022
@090809
Copy link
Author

090809 commented Jan 30, 2022

@shalvah You did not delete the afterTestCleanup function in tests, now it unused

@090809 090809 deleted the fix-415-wrong-belongs-to-relation-creating branch January 30, 2022 15:39
@shalvah
Copy link
Contributor

shalvah commented Jan 30, 2022 via email

@shalvah
Copy link
Contributor

shalvah commented Jan 30, 2022

If we add more features that rely on the database, we may eventually add these database tests back, and your work might come in handy. Thanks!

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