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

Deleting With Limit Doesn't Work #2502

Closed
ceater-sigma opened this issue Jan 31, 2023 · 1 comment · Fixed by #2591
Closed

Deleting With Limit Doesn't Work #2502

ceater-sigma opened this issue Jan 31, 2023 · 1 comment · Fixed by #2591

Comments

@ceater-sigma
Copy link

  • Laravel Version: 9
  • PHP Version: 8.0
  • MongoDB Version: 3.9

Description:

Hello, i have problem when deleting data using where + limit. Even using limit is not working. The command didn't use the limit parameter.

Steps to reproduce

BalanceModel::where('time', '<=', 1670707849677)->take(1)->delete();

Expected behaviour

Delete BalanceModel where time < xxxx limit 1

Actual behaviour

When i run that command, it delete using time parameter and delete document without limiting the delete command

The Current Operation Image Status
image
image

@GromNaN
Copy link
Member

GromNaN commented Aug 31, 2023

You can look at the proposed fix: #2591

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 a pull request may close this issue.

2 participants