1
0
mirror of synced 2024-12-13 06:46:03 +03:00

[2.0] Parser work. Drafted logic for multi-table deletes through DQL (for Class/Concrete Table Inheritance)

This commit is contained in:
romanb 2009-03-21 12:52:43 +00:00
parent d833ee1464
commit 98076e0b0d

View File

@ -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)