creocoder / yii2-taggable

The taggable behavior for the Yii framework.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Composite primary key in Post-model

sidanval opened this issue · comments

Hi.
My post-model::primaryKey() returns ['id', 'version'].
And thus in the TaggableBehavior[:177] rows are of the form array:

Array
(
    [0] => Array
        (
            [0] => Array
                (
                    [id] => 1
                    [version] => 0
                )

            [1] => 6
        )
)

Similarly this is to remove the tags.
What can be done?
Only override methods of afterSave and beforeDelete?

Update: override as I understand it does not help - private $_tagValues; :(