Skip to content

Commit 46c93e4

Browse files
committed
#21 Make tag state value available to db behavior
1 parent 26136d7 commit 46c93e4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

model/behavior/taggable.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ public function onMixin(KObjectMixable $mixer)
6666
protected function _makeTaggable(KModelContextInterface $context)
6767
{
6868
$model = $context->getSubject();
69-
$model->getTable()->addBehavior('com:tags.database.behavior.taggable', array('strict' => $this->getConfig()->strict));
69+
70+
$model->getTable()->addBehavior('com:tags.database.behavior.taggable', array(
71+
'tags' => $model->getState()->tag,
72+
'strict' => $this->getConfig()->strict
73+
));
7074
}
7175

7276
/**

0 commit comments

Comments
 (0)