Sergei Tigrov

Results 111 comments of Sergei Tigrov

It related with the method `BaseActiveRecord::isAttributeChanged()` https://github.com/yiisoft/yii2/blob/master/framework/db/BaseActiveRecord.php#L579 If you want to change a property of the object `$newModel->price` you should mark the attribute `price` as changed. One of the following...

В какой версии PHP выдается сообщение об ошибке? Проверил в PHP 8.0.6 такой ошибки нет.

Use `ColumnBuilder::*` to create table columns

Closed in favour of https://github.com/yiisoft/db-migration/issues/13

There is `execute()` method which executes SQL strings. Name `executeFile()` looks good for executing SQL files. The method should be added to `CommandInterface` and realized in `AbstractCommand` as `execute()` method....

The issue related with `yiisoft/db`, `primaryKey` is a part of `Yiisoft\Db\Schema\Builder\AbstractColumn` class. https://github.com/yiisoft/db/blob/4f1dbb95c9551b4359cdb2b188d0094bd70aa138/src/Schema/SchemaInterface.php#L124 https://github.com/yiisoft/db-mysql/blob/d48ca3a6ad83abf6ed97e146185c76c5ce2e55ab/src/QueryBuilder.php#L20 And this should be solved there

> Can we use native PHP readonly properties (PHP 8.1) and classes (PHP 8.2) for the purpose? Looks like a solution but still can be deleted using `$model->delete()`