-
Notifications
You must be signed in to change notification settings - Fork 1.4k
added MorphToMany with testcases #2640
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
Conversation
attach MorphToMany working detaching works sync working cleanup
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is code cleanup to do.
@@ -41,7 +43,7 @@ trait HybridRelations | |||
public function hasOne($related, $foreignKey = null, $localKey = null) | |||
{ | |||
// Check if it is a relation with an original model. | |||
if (! is_subclass_of($related, MongoDBModel::class)) { | |||
if (!is_subclass_of($related, MongoDBModel::class)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our CS requires that there is a space after exclamation mark. I'll revert this changes with phpcbf before merging.
Codecov Report
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. @@ Coverage Diff @@
## 4.1 #2640 +/- ##
============================================
- Coverage 91.04% 89.38% -1.66%
- Complexity 756 818 +62
============================================
Files 35 36 +1
Lines 1931 2110 +179
============================================
+ Hits 1758 1886 +128
- Misses 173 224 +51
|
Closing in favor of #2670 |
Can you give this a try?