Alexander Kochetov
Alexander Kochetov
@stifff > А почему лишними? Если у вас root является внешним ключем на другую таблицу, значит корни также не должны содержаться в таблице где есть это поле. > Код с...
@mikehaertl In general fix is much more complex than introduced in that PR. So i'll take this ticket myself. I'll explain why. There should be special "externalRoots" mode. And behavior...
@mikehaertl Seems you misunderstood original issue. External roots mean roots in different table. So no roots in NS table at all. Your PR is about allow use custom ids for...
It depends on your task. If you need independence tags per language that you can use NewsTranslation model if don't use News model.
Код отлично работает, просто у Countries нет родителей, поэтому вернется пустой результат. Документация будет поправлена в ближайшее время.
Yes, its possible.
@usualdesigner Just set up behavior twice with different ids, like: ``` php public function behaviors() { return [ 'taggable1' => [ 'class' => TaggableBehavior::className(), ], 'taggable2' => [ 'class' =>...
@usualdesigner When you attach same behavior twice it work independently. So you do not need override anything, etc. It will work as it is.
@usualdesigner Example: ``` php $item = new Item(); $item->getBehavior('taggable')->tagValues = 'one, two, three'; $item = new Item(); $item->getBehavior('materialable')->tagValues = 'one, two, three'; ```
@cebe Than crazyness prevention should go through whole system. You can still do for example `MyModel::find()->all()`. I'm with OP. Condition should be removed. For example it just make pain to...