I am using the ZendDb
database adapter which doesn't bring all the tweaks SQL
can do. For example if I want to do a REPLACE INTO
I would have to code it like this:
$SQL = sprintf('REPLACE INTO %s (id, NAME, cache_id, compile_id, content) VALUES (%s, %s, %s, %s, %s)' %
array(self::TABLE_NAME, $id, $name, $cache_id, $compile_id));
$this->_zdb->query($SQL);
The problem is that PhpStorm tells me that the %s
is an error inside the SQL.
When I try hotfixing it with Alt + Enter I don't get the option to suppress the inspection for this line.
I' need something like this:
/** @noinspection SqlInspection */
I googled and found this page but nothing of the options seemed to help.
Any ideas?