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

hasPivotAttributes() public method

Return whether the relationshpi has pivot attributes or not.
public hasPivotAttributes ( string $name ) : boolean
$name string of related model
return boolean
    public function hasPivotAttributes($name)
    {
        return array_key_exists($name, $this->relationshipPivots ?: []);
    }