I'm trying to use the zend framework update class: http://framework.zend.com/manual/2.2/en/modules/zend.db.sql.html#zend-db-sql-update
to create something like the statement found here:
http://dev.mysql.com/doc/refman/5.0/en/update.html
UPDATE items,month SET items.price=month.price WHERE items.id=month.id;
I've tried passing an array to ->table but it fails on the string conversion.
// UPDATE `Array`
$update->table(['table1', 'table2'])
I've tried creating an escaped string but it ends up double escaped when converted to sql.
// UPDATE ``table1`,`table2``
$update->table("`table1`,`table2`")
I've tried cheating and used implode to use the glue the tables together
// UPDATE `table1``,``table2`
$update->table(implode("`,`", ['table1','table2']))
Does anyone have a clean answer to this issue?