[Solar-talk] problem with related tables with latest svn

Jeff Surgeson solar at 3hex.com
Sat Apr 12 08:06:01 CDT 2008


Does this make sense?

I was playing with the new pager stuff so had set count_pages => true in the 
query params, if I comment out count_pages or set it to TRUE the query works?

This must be a bug, or am I being doff again?

> public function actionList($category = null)
> {
>     $params = array(
>         'eager'  => 'gallerycat',
>         'where'  => array(
>             'gallerycat.sub_cat_name = ?' => $category,
>         ),
>         'order'         => $this->_getSqlOrder(),
>         'page'          => $this->_query('page', 1),
>         'paging'        => $this->_query('paging', 2),
>         //'count_pages'   => true,
>     );
>     $this->list = $this->_gallery->fetchAll($params);
> }
>

-- 
...........::::::...........
Jeff Surgeson / South Africa


More information about the Solar-talk mailing list