Sergei Predvoditelev
Sergei Predvoditelev
> This is an unhandled exception. We don't care much about performance in this case, since it is executed only once. Currently it is not exception, it is fatal error....
```php function dbTypecast(ColumnInterface $column, mixed $value): mixed { if ($value === null || $value instanceof ExpressionInterface) { return $value; } return $column->dbTypecast($value); } ``` And instead of `$column->dbTypecast($value)` call `dbTypecast($column,...
> What if I need type-casting for null values? If such a case exists, then check only `ExpressionInterface`
It's also will be userfull in `Query` from Yii DB.