source/Spiral/ORM/Entities/Relations/ManyToManyRelation.php
public function getPivot(RecordInterface $record): array
    {
        if (empty($matched = $this->matchOne($record))) {
            return [];
        }

        return $this->pivotData->offsetGet($matched);
    }
public function getPivot(RecordInterface $record): array
    {
        if (empty($matched = $this->matchOne($record))) {
            return [];
        }

        return $this->pivotData->offsetGet($matched);
    }
public function getPivot ( RecordInterface $ record ) : array { if ( empty ( $ matched = $ this -> matchOne ( $ record ) ) ) { return [ ] ; } return $ this -> pivotData -> offsetGet ( $ matched ) ; }
Get pivot data associated with specific instance.

@param RecordInterface $record

@return array
Get pivot data associated with specific instance .