[2.0] Parser work. Drafted logic for multi-table deletes through DQL (for Class/Concrete Table Inheritance)
This commit is contained in:
parent
d833ee1464
commit
98076e0b0d
@ -43,8 +43,8 @@ class MultiTableDeleteExecutor extends AbstractExecutor
|
|||||||
*/
|
*/
|
||||||
public function __construct(\Doctrine\ORM\Query\AST $AST)
|
public function __construct(\Doctrine\ORM\Query\AST $AST)
|
||||||
{
|
{
|
||||||
// 1. Create a INSERT ... SELECT statement where the SELECT statement
|
// 1. Create a INSERT INTO temptable ... VALUES ( SELECT statement where the SELECT statement
|
||||||
// selects the identifiers from the temporary ID table and uses the WhereClause of the $AST.
|
// selects the identifiers and uses the WhereClause of the $AST.
|
||||||
|
|
||||||
// 2. Create ID subselect statement used in DELETE .... WHERE ... IN (subselect)
|
// 2. Create ID subselect statement used in DELETE .... WHERE ... IN (subselect)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user