/** * Sets the primary table name and retrieves the table schema. * * @param \Zend\Db\Table\AbstractTable $adapter * @return \Zend\Db\Select This \Zend\Db\Select object. */ public function setTable(AbstractTable $table) { $this->_adapter = $table->getAdapter(); $this->_info = $table->info(); $this->_table = $table; return $this; }