Esensi\Model\Traits\RelatingModelTrait::callDynamicRelationship PHP Method

callDynamicRelationship() protected method

Call a dynamically resolved relationship.
protected callDynamicRelationship ( string $name ) : mixed
$name string
return mixed
    protected function callDynamicRelationship($name)
    {
        // Dynamically call the relationship
        if ($this->isRelationship($name)) {
            return $this->callRelationship($name);
        }
    }