use doctrine instead zend db

On Mon, Aug 6, 2012 at 7:46 PM, Matthew Weier O'Phinney <matt...@zend.com>wrote:

> -- cmple <roman.vidya...@gmail.com> wrote
> (on Saturday, 04 August 2012, 07:38 PM -0700):
> > It seems like the most vital feature of zf2 (the pagination) is still
> > broken, or am I missing something?
>
> The DbSelect adapter has known issues, and a couple of contributors are
> collaborating to get those resolved before the next RC release.
>
> > here is my code:
> >
> > <?php
> > namespace Application\Service\User;
> >
> > use Zend\Paginator\Paginator,
> >     Zend\Paginator\Adapter\DbSelect as PaginatorDbSelect;
> >
> > ...
> > ...
> >
> > public function getTransactions() {
> >         $paginator = new Paginator(new
> >
> PaginatorDbSelect($this->sqlGateway*->select('user')->where("user_id='{$userId}'")));
> >         $paginator->setItemCountPerPage(5)
> >                 ->setCurrentPageNumber(1);
> >
> > * sqlGateway is a custom wrapper that wraps all of the select, insert,
> > update, delete and arapter classes in a single class.
> >
> > I'm still getting the following error:
> >
> > Fatal error: Call to undefined method Zend\Db\Sql\Select::__toString() in
> >
> /****/vendor/zendframework/zendframework/library/Zend/Paginator/Adapter/DbSelect.php
> > on line 154
> >
> > Please help
> >
> >
> >
> >
> >
> > --
> > View this message in context:
> http://zend-framework-community.634137.n4.nabble.com/ZF2-2-0-0rc2-Pagination-is-still-broken-tp4656101.html
> > Sent from the Zend Framework mailing list archive at Nabble.com.
> >
> > --
> > List: fw-general@lists.zend.com
> > Info: http://framework.zend.com/archives
> > Unsubscribe: fw-general-unsubscr...@lists.zend.com
> >
> >
>
> --
> Matthew Weier O'Phinney
> Project Lead            | matt...@zend.com
> Zend Framework          | http://framework.zend.com/
> PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc
>
> --
> List: fw-general@lists.zend.com
> Info: http://framework.zend.com/archives
> Unsubscribe: fw-general-unsubscr...@lists.zend.com
>
>
>


-- 
________________
Sincerely
Sina Miandashti
www.InTheMix.ir  Admin
www.teamatec.com Head PHP Developer

Reply via email to