-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[4.0.x] Pagination supports optional aliases and Phalcon\Mvc\Model\Query\Builder supports bind params #13653
[4.0.x] Pagination supports optional aliases and Phalcon\Mvc\Model\Query\Builder supports bind params #13653
Conversation
@@ -0,0 +1,70 @@ | |||
<?php |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will need to refactor this a bit after we add it to the main repo. I will generate test stubs to split all the methods and make tests shorter. a todo for later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries. In future, would you rather we generate the stubs when adding new classes? If so, how do we do that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those are generated with zephir stubs
Looking good! |
Created tentative test for Issue phalcon#13552
5fe36d5
to
217518d
Compare
@niden changes have been made as requested :) |
@CameronHall Thank you! |
@@ -54,3 +54,5 @@ php_test_results_*.txt | |||
docker-compose.yml | |||
build/gccarch | |||
tests/_cache | |||
.zephir/ | |||
.temp/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CameronHall Zephir >= 0.11 uses .zephir
and Zephir < 0.11 .temp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sergeyklay I'll remove .temp
in the next PR.
Hello!
In raising this pull request, I confirm the following (please check boxes):
Small description of change:
Phalcon\Paginator\RepositoryInterface
for repository the current state ofpaginator
and also optional sets the aliases for properties repository.Phalcon\Mvc\Model\Query\Builder
. The Query Builder has the same methods asPhalcon\Mvc\Model\Query
;getBindParams
,setBindParams
,getBindTypes
andsetBindTypes
. #13368It is worth noting I made a few changes between the original PR #10985 and this one. I've updated all the property names to what they were changes to in #13492. I also turfed the
totalPages
property as it was made redundant by the pre-existing propertylast
.All of the pagination adapter constructors received a spring clean as well.
Thanks