public function hasRows()
 {
     return parent::hasRows() || !empty($this->parents);
 }