Alex
Alex
This could produce an unexpected result too. ```php $query = (new Query); $cols = ['col1', 'col2']; foreach ($cols as $col) { $query->addSelect($col); } ``` I'd be expecting ```sql SELECT `col1`,...
Not sure if there could be any edge cases with that regex, testing it with `'a, COALESCE(IF(1, 2, 3), IF(4, 5, 6))'` you get 3 strings back. ``` Array (...
Is it just the write success that's failing? If you write an address and move it back to the main track does the new address work? Wondering if the CS...
Would this cause confusion with extra conditions? e.g. ```php SomeRecord::findByCondition($pks)->where('true=false')->all() ``` Would override the `where` set by `findByCondition`.
https://github.com/yiisoft/yii2/pull/7103 Something I started here.
@klimov-paul That's a handy behavior, be nice if something like this was part of yii2.
I started something here, https://github.com/yiisoft/yii2/pull/7103 Hoping for some more discussion.
Which version of Yii are you using? If it's older than 2.0.14 this could be why.
How do you know that it's not caching? I tested a simple loop with a sum query and it's cached.
Do you have a cache configured?