public function setRelation(Row $row) { $modelName = $row->getTable()->getModel(); $this->relations[$modelName] = [$row]; return $this; }