Documentation

MultiTableDeleteExecutor extends AbstractSqlExecutor
in package

Executes the SQL statements for bulk DQL DELETE statements on classes in Class Table Inheritance (JOINED).

Tags
link
http://www.doctrine-project.org

Table of Contents

Properties

$_sqlStatements  : array<int, string>|string
$queryCacheProfile  : QueryCacheProfile
$createTempTableSql  : string
$dropTempTableSql  : string
$insertSql  : string

Methods

__construct()  : mixed
Initializes a new <tt>MultiTableDeleteExecutor</tt>.
execute()  : int
Executes all sql statements.
getSqlStatements()  : array<string|int, mixed>|string
Gets the SQL statements that are executed by the executor.
removeQueryCacheProfile()  : void
Do not use query cache
setQueryCacheProfile()  : void

Properties

Methods

__construct()

Initializes a new <tt>MultiTableDeleteExecutor</tt>.

public __construct(DeleteStatement $AST, SqlWalker $sqlWalker) : mixed

Internal note: Any SQL construction and preparation takes place in the constructor for best performance. With a query cache the executor will be cached.

Parameters
$AST : DeleteStatement

The root AST node of the DQL query.

$sqlWalker : SqlWalker

The walker used for SQL generation from the AST.

execute()

Executes all sql statements.

public execute(Connection $conn, array<string|int, mixed> $params, array<string|int, mixed> $types) : int
Parameters
$conn : Connection

The database connection that is used to execute the queries.

$params : array<string|int, mixed>
$types : array<string|int, mixed>
Return values
int

getSqlStatements()

Gets the SQL statements that are executed by the executor.

public getSqlStatements() : array<string|int, mixed>|string
Return values
array<string|int, mixed>|string

All the SQL update statements.

removeQueryCacheProfile()

Do not use query cache

public removeQueryCacheProfile() : void

        
On this page

Search results