fixed DQL DELETE handling for mysql
This commit is contained in:
parent
1da5baee10
commit
8bc6813100
1 changed files with 6 additions and 2 deletions
|
@ -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 ';
|
||||
|
|
Loading…
Add table
Reference in a new issue