function getSelectCommand() { if ($this->_command == null) { $this->setCommand(\DBAL\Query::build(\DBAL\Query::SQL)->select()->from($this->getResource())); } return parent::getSelectCommand(); }