Skip to content

Commit

Permalink
Merge pull request #11301 from ifsnow/2.0.x-fix-issue-11298
Browse files Browse the repository at this point in the history
Fixed for Builder bug (#11298)
  • Loading branch information
sergeyklay committed Jan 13, 2016
2 parents a94d7b5 + 9508b31 commit 649f3cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- Fixed `Phalcon\Acl\Memory::allow` bug[#11210] related to the inconsistent behavior with access specified as string and array
- Added quoting column in `Phalcon\Db\Dialect\MySQL::addColumn` when define position of the column
- Added support to define position of the column in `Phalcon\Db\Dialect\MySQL::modifyColumn`
- Fixed `Phalcon\Mvc\Model\Query\Builder` bug[#11298] related to resetting limit to null

# [2.0.9](https://github.com/phalcon/cphalcon/releases/tag/phalcon-v2.0.9) (2015-11-24)
- Fixed bug that double serializes data using Redis adapter
Expand Down
6 changes: 3 additions & 3 deletions phalcon/mvc/model/query/builder.zep
Original file line number Diff line number Diff line change
Expand Up @@ -904,11 +904,11 @@ class Builder implements BuilderInterface, InjectionAwareInterface
* $builder->limit(100, 20);
*</code>
*/
public function limit(int limit = null, int offset = null) -> <Builder>
public function limit(var limit = null, var offset = null) -> <Builder>
{
let this->_limit = limit;
if offset {
let this->_offset = offset;
if is_numeric(offset) {
let this->_offset = (int)offset;
}
return this;
}
Expand Down

0 comments on commit 649f3cd

Please sign in to comment.