You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got issue when try to execute Image::deleteAll(['like', 'cover', 'some_image']);. Yii2 twice quote param ''some_image' before execute query.
In result query looks like
DELETEFROM image WHERE cover LIKE'%some\\_image%'
but should be
DELETEFROM image WHERE cover LIKE'%some\_image%'
(with one back slash)
Additional info
Q
A
Yii version
2.0.12
PHP version
PHP 7.1.17-1+ubuntu16.04.1+deb.sury.org+1
Operating system
Linux Mint 18.3 64-bit
The text was updated successfully, but these errors were encountered:
samdark
changed the title
Duplicate quoating SQL params on AcrtiveRecord::deleteAll() method
Duplicate quoting SQL params on AcrtiveRecord::deleteAll() method
May 14, 2018
I've got issue when try to execute
Image::deleteAll(['like', 'cover', 'some_image']);
. Yii2 twice quote param ''some_image' before execute query.In result query looks like
but should be
(with one back slash)
Additional info
The text was updated successfully, but these errors were encountered: