Sergei Tigrov

Results 111 comments of Sergei Tigrov

> Unfortunately, a result of populated models with this query is not correct and contains duplicated ids in $model->duplicates ; The valid result will be only if add additional grouping...

It is okey to use user defined setters and getters in a project, for example `$model->getName()` and `$model->setName()` This approach does not require extra magic.

> What's the reason to rename `attributes` to `properties`? It was discussed that there is confusion between the `$attributes` AR property and PHP's `#[Attribute]`. But it's a good question. Now...

> Are there any pitfalls here? Rename methods also it looks logically. Discussion about renaming `$attributes` moved to https://github.com/yiisoft/active-record/issues/343

This should work not only for the primary key, but for any unique key.