Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

PHPORM-63 Remove unused public property Query\Builder::$paginating #15

Merged
merged 1 commit into from
Jul 20, 2023

Conversation

GromNaN
Copy link
Owner

@GromNaN GromNaN commented Jul 19, 2023

Fix PHPORM-63

Query\Builder::$paginating is initialized by Query\Builder::forPage but never used.

Introduced by mongodb/laravel-mongodb@9603949 it was never removed when it stopped being used in mongodb/laravel-mongodb@a8918ac

@GromNaN GromNaN requested review from jmikola and alcaeus July 19, 2023 16:19
/**
* @inheritdoc
*/
public function forPage($page, $perPage = 15)
Copy link
Collaborator

Choose a reason for hiding this comment

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

The commit message would benefit from noting that this is being removed as well.

Does the base class' forPage() method do the same thing?

Copy link
Owner Author

@GromNaN GromNaN Jul 19, 2023

Choose a reason for hiding this comment

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

Yes, the parent method is exactly the same, except for the $paginating property. So removing the method overload doesn't change anything.

…$not` (#13)

`Query\Builder::whereNot` was simply ignoring the "not" and breaking the built query.
@GromNaN GromNaN merged commit 52c0ea3 into master Jul 20, 2023
@GromNaN GromNaN deleted the PHPORM-63 branch July 20, 2023 21:48
GromNaN added a commit that referenced this pull request Aug 22, 2023
…$not` (#13) (#15)

`Query\Builder::whereNot` was simply ignoring the "not" and breaking the built query.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants