dosamigos\fileupload\actions\AbstractUploadAction::link PHP Method

    protected function link($ownerId, $id)
    {
        ActiveRecord::getDb()->createCommand()->insert($this->ownerLinkTable, [$this->ownerLinkTableAttribute => $ownerId, $this->ownerLinkTableAttribute => $id])->execute();
    }