<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Thu, 24 May 2012 20:48:01 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Anis Ahmad's Blog: Join Problems with Zend_Paginator and Zend_Db_Select objects]]></title>
      <guid>http://www.phpdeveloper.org/news/10918</guid>
      <link>http://www.phpdeveloper.org/news/10918</link>
      <description><![CDATA[<p>
<i>Anis Ahmad</i> <a href="http://www.ajaxray.com/blog/2008/08/24/join-problems-with-zend_paginator-and-zend_db_select-objects/">had a problem</a>. The Zend_Paginator component of the Zend Framework, while powerful, wasn't quite working right. Bugs popped up when he used a join along with a Zend_Db_Select.
</p>
<blockquote>
One of the 4 Adapters for Zend_Paginator is DbSelect which uses a Zend_Db_Select instance. Now, the problem occurred if I need to have some calculative data from other tables and use join with the Zend_Db_Select object for them.
</blockquote>
<p>
He gives an example of a join that he performed with the component, the details of the "behind the scenes" code and why it happened that way. He also offers a solution (before the Zend_Pagination component was patched for it, of course) of changing the count() method it uses slightly to remove an unneeded part of the query.
</p>]]></description>
      <pubDate>Thu, 28 Aug 2008 11:18:55 -0500</pubDate>
    </item>
  </channel>
</rss>

