ZF2 execute statement how to
问题 I'd like to know what I'm doing wrong. This is my class. use Zend\Db\Adapter\Adapter; use Zend\Db\Sql\Sql; use Zend\Db\Sql\Select; class Country { protected $_dbA; protected $_sql; public function __construct(Adapter $dbA) { $this->_dbA = $dbA; $this->_sql = new Sql($this->_dbA); } public function getCity() { $select = new Select(); $sql = $select->from('es') ->columns(array('City')) ->where(array('ZIP' => 28934)); if (is_string($sql)) { $stm = $this->_dbA->createStatement($sql); } else {