Commit 8bc68131 authored by zYne's avatar zYne

fixed DQL DELETE handling for mysql

parent 1da5baee
......@@ -591,11 +591,15 @@ class Doctrine_Query extends Doctrine_Hydrate implements Countable {
{
switch ($this->type) {
case self::DELETE:
/**
no longer needed?
if ($this->conn->getName() == 'Mysql') {
$q = 'DELETE ' .end($this->tableAliases) . ' FROM ';
$q = 'DELETE ' . end($this->tableAliases) . ' FROM ';
} else {
*/
$q = 'DELETE FROM ';
}
// }
break;
case self::UPDATE:
$q = 'UPDATE ';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment