cphalcon
cphalcon copied to clipboard
Models - offset does not work
In version 1.0.1 reappeared bug #504
Can you post a test for this I'm not able to reproduce this problem
I checked the various options. Bug appears, if the limit is specified as a string:
Questions::find(
array( 'limit' => '2,3')
);
In previous versions it worked
Yep, but 2,3 is not a valid limit, you must use:
Questions::find(
array( 'limit' => array('number' => 2, 'offset' => 3)
);
What about backward compatibility? ;)
Maybe the bug was support that syntax :)
OK, but the string was more convenient :)