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

distinct values #3

Open
minaezeet opened this issue Aug 13, 2024 · 1 comment
Open

distinct values #3

minaezeet opened this issue Aug 13, 2024 · 1 comment

Comments

@minaezeet
Copy link

minaezeet commented Aug 13, 2024

Hello, Hope you are doing well, and thank you for the great lib

is there are any way to add a select distinct with wheres in CommanModal? as I tried everything to use distinct but I always get the following error:

Attempt to read property "app-ReservationST" on string

The modal function is:

public function getListDistinct($f,string $collection, array $where = [], array $options = [], array $select = []) { return $this->m->options($options)->where($where)->distinct($collection,$f); }

Usage:
$MongoModel->getListDistinct('mSTMC','app-ReservationST')

Thank you.

@bertugfahriozer
Copy link
Owner

Hello, thank you very much. I hope you're doing well.

I haven't added any functions to the CommonModel yet about distinct method, but I will do that and update the library version.

Thank you especially for your interest and advice.

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

No branches or pull requests

2 participants