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 MorphToMany #2608

Closed
wants to merge 1 commit into from
Closed

Conversation

ithuis
Copy link

@ithuis ithuis commented Sep 8, 2023

No description provided.

Copy link
Member

@GromNaN GromNaN left a comment

Choose a reason for hiding this comment

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

Thank you for working on this major feature.

There is already a test for the morph feature. If you've found a specific issue that requires overloading this 2 methods, could you add new tests?

@@ -279,7 +281,7 @@ public function belongsToMany(
}

// Check if it is a relation with an original model.
if (! is_subclass_of($related, MongoDBModel::class)) {
if (!is_subclass_of($related, MongoDBModel::class)) {
Copy link
Member

Choose a reason for hiding this comment

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

Could you revert this changes using php vendor/bin/phpcbf.

@ithuis
Copy link
Author

ithuis commented Sep 8, 2023

sorry, this is not good. Will be back with a working one

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.

2 participants