try :
  
     ->columns(array('num' => new \Zend\Db\Sql\Expression('COUNT(*)')));



--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Zend-Framework-2-and-SELECT-count-query-tp4658383p4658386.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


Reply via email to