/** * {@inheritdoc} */ protected function getRelationshipFromMethod($name) { if ($relationship = $this->getCustomRelationship($name)) { return $relationship; } return parent::getRelationshipFromMethod($name); }
/** * {@inheritdoc} */ public function getRelationship($model, $name) { if ($relationship = $this->getCustomRelationship($model, $name)) { return $relationship; } return parent::getRelationship($model, $name); }