'Row count is not available in unbuffered result sets.' with Zend Table Gateway
问题 I'm trying to use Zend TableGateway as a stand alone component with my app (not ZF2). Below is a simple test script to just fetch some rows but I get the error Uncaught exception 'Zend\Db\Adapter\Exception\RuntimeException' with message 'Row count is not available in unbuffered result sets.' in /var/www/shared-views-slim/vendor/zendframework/zend-db/Zend/Db/Adapter/Driver/Mysqli/Result.php:324 Below is my code: /** * This makes our life easier when dealing with paths. Everything is relative *