Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
PropelModelPager's lastPage is a float, not an int #316
When you use lastPage you expect an int, that is also what the comments say. But it returns a float.
$this->setLastPage(ceil($this->getNbResults() / $this->getMaxPerPage()));
$this->setLastPage((int)ceil($this->getNbResults() / $this->getMaxPerPage()));