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

withCount is not working #3003

Open
Rahul-codoffer opened this issue Jun 10, 2024 · 9 comments
Open

withCount is not working #3003

Rahul-codoffer opened this issue Jun 10, 2024 · 9 comments

Comments

@Rahul-codoffer
Copy link

  • Laravel-mongodb Version: 4.3
  • PHP Version:8.3.7

Description:

Getting This method is not supported by MongoDB. Try "toMql()" instead on withCount function

@omerkoseoglu

This comment was marked as spam.

@Rahul-codoffer

This comment was marked as spam.

@GromNaN
Copy link
Member

GromNaN commented Jun 17, 2024

Could you please provide a sample code to reproduce the issue. Some features are not supported with MongoDB or require some additional work.

@hooman-mirghasemi
Copy link

I have same problem in laravel 10 php 8.3 and this package latest version 4.5

@GromNaN
Copy link
Member

GromNaN commented Jun 29, 2024

@hooman-mirghasemi Same question.

Could you please provide a sample code to reproduce the issue. Some features are not supported with MongoDB or require some additional work.

@hooman-mirghasemi
Copy link

hooman-mirghasemi commented Jul 4, 2024

make a model in mysql "post"
then make an other one in mongo db "comments"
make hybrid relationships

Post::withCount('comments')->get();

@MiladAheshmeh

This comment was marked as spam.

@MiladAheshmeh

This comment was marked as abuse.

@alcaeus

This comment was marked as off-topic.

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

6 participants