From 98076e0b0dd63cb15cdec1140a9e07bdcdbfab45 Mon Sep 17 00:00:00 2001 From: romanb Date: Sat, 21 Mar 2009 12:52:43 +0000 Subject: [PATCH] [2.0] Parser work. Drafted logic for multi-table deletes through DQL (for Class/Concrete Table Inheritance) --- lib/Doctrine/ORM/Query/Exec/MultiTableDeleteExecutor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/ORM/Query/Exec/MultiTableDeleteExecutor.php b/lib/Doctrine/ORM/Query/Exec/MultiTableDeleteExecutor.php index 243b77976..35b954c04 100644 --- a/lib/Doctrine/ORM/Query/Exec/MultiTableDeleteExecutor.php +++ b/lib/Doctrine/ORM/Query/Exec/MultiTableDeleteExecutor.php @@ -43,8 +43,8 @@ class MultiTableDeleteExecutor extends AbstractExecutor */ public function __construct(\Doctrine\ORM\Query\AST $AST) { - // 1. Create a INSERT ... SELECT statement where the SELECT statement - // selects the identifiers from the temporary ID table and uses the WhereClause of the $AST. + // 1. Create a INSERT INTO temptable ... VALUES ( SELECT statement where the SELECT statement + // selects the identifiers and uses the WhereClause of the $AST. // 2. Create ID subselect statement used in DELETE .... WHERE ... IN (subselect)