Esensi\Model\Traits\RelatingModelTrait::hasPivotAttributes PHP 메소드

hasPivotAttributes() 공개 메소드

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