-
-
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
[BUG]: Undefined index: di #14639
Comments
Resolved |
This is still happening BTW. This is not resolved. I get the errors when accessing the data from a view variable that is set with:
This view var is set AFTER I paginate(); the Model. I am using the Model Adapter for this. Running almost identical server setup as described in OP's ticket. |
@eklect Are you using the latest Phalcon? This was addressed in 4.0.1 from what I see. |
I currently am running 4.0.5 |
@eklect I tried reproducing this but am not having much luck. I created this test based on the input of this issue: And the tests pass just fine: https://github.com/niden/cphalcon/runs/511189972?check_suite_focus=true (you can expand the MySQL test run - you will see it's all green). Any more input you can offer? |
My bug I saw wasn't on the QueryBuilder Adapter, but on the Model adapter. I was experiencing the same issues but on a different adapter. My suspicion is that the QueryBuilder bug was fixed, but there might be one on the Model Adapter? That's about as far as I got on troubleshooting it before writing a "quick & dirty" workaround. |
Gotcha. I will write a test for the model one and see if I get a fail on it. |
Ok Thanks for looking into that for me @niden . Appreciate the help greatly. Thank you again for all your hard work! Phalcon is my absolute fav! |
Closing this |
* '4.0.x' of github.com:phalcon/cphalcon: (62 commits) [#13655] - Added more tests [#13655] - Added one more test for get/set [#13655] - Hangout test!! [4.0.x] - Minor refector [4.0.x] - Correcting test [4.0.x] - Minor correction [4.0.x] - Updated Request tests [#14639] - Added test for model paginate [#14639] - Trying phpunit 8.5 [#14639] - Removed sqlite from test [#14639] - Added test [#14907] - Updated changelog [#14907] - Removed cache parsing from Volt [#14912] - Updated changelog [ci-skip] [#14912] - Updated changelog [#14912] - Removed iconv from Volt::convertEncoding Deleted Makefile [#14866] - Enabling tests [#14866] - Updated changelog [#14866] - Changed the friendlyTitle to not rely on iconv ...
Describe the bug
QueryBuilder
Paginator generate notice duringpaginate()
call. Inside travis build.To Reproduce
Steps to reproduce the behavior:
Criteria::fromInput()
Phalcon\Paginator\Adapter\QueryBuilder
$paginator->paginate()
Expected behavior
Code runs without PHP Norice.
Details
Additional context
https://travis-ci.com/phalcon/vokuro/jobs/269569381#L681
The text was updated successfully, but these errors were encountered: