sokollondon

Results 16 comments of sokollondon

@drtsb Сергей, не знаю как разделить сейчас. Ведь все 3 коминта в одной ветке. Зачем это нужно?

@drtsb почему бы не применить весь PR? Все три коммита полезные и не уменьшают производительность. #78 правка опциональная. Кому не требуются эти Enh могут не использовать)

I did it as optional feature, see pull request. **Config** ```php public function behaviors() { return [ 'saveRelations' => [ 'class' => SaveRelationsBehavior::class, //... 'checkRelationsSafe' => true,//

Thanks for the answer @juban =) 1. Why I can't use `behaviors()` Above, I made a simplified example. Actually I need to use AR fields in the condition ```php if(Yii::$app->user->can('admin')...

Такая же проблема. Исправьте, пожалуйста =) В файле \generators\model\default\model.php переменная $relations содержит пустой массив. Gii version: 2.1.0 Yii version: 2.0.19

@samdark генерирую из веб-интерфейса. Дамп тут https://yadi.sk/d/tsWhBdKMEe1bKA для примера пытался сгенерировать модель таблицы planning.invoices, должен быть relation getContracts

Solved the problem by unchecking the `Generate Relations from Current Schema` In general, if you check the box, then the relation is displayed only from the public schema, although the...

I solved the problem. Clear `Yii Root Path` in settings. It helped for me ![2021-03-05_14-00-20](https://user-images.githubusercontent.com/11624566/110092308-47175580-7dbb-11eb-977b-8cdcb202cb6c.png) There is no need to change the Views settings. If you have a default structure...

Do you need a free hosting?