protected function getDataRows() { if (TreeView::EXPANDED === $this->mode) { if (null === $this->dataRows) { $this->dataRows = $this->dataSource->fetchAssoc($this->primaryKey); } return $this->dataRows; } else { return parent::getDataRows(); } }