Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

Public Member Functions | List of all members
eZ\Publish\Core\Persistence\Database\DeleteQuery Interface Reference
Inheritance diagram for eZ\Publish\Core\Persistence\Database\DeleteQuery:

## Public Member Functions
| deleteFrom ($table)
| Opens the query and sets the target table to $table. More...
| where ()
| Adds a where clause with logical expressions to the query. More...
Public Member Functions inherited from eZ\Publish\Core\Persistence\Database\Query
| subSelect ()
| Create a subselect used with the current query. More...
| prepare ()
| bindValue ($value, $placeHolder=null, $type=PDO::PARAM_STR)
| Binds the value $value to the specified variable name $placeHolder. More...
| bindParam (&$param, $placeHolder=null, $type=PDO::PARAM_STR)
| Binds the parameter $param to the specified variable name $placeHolder. More...
| getQuery ()
| Return the SQL string for this query. More...
| __toString ()
| Return the SQL string for this query. More...

## Detailed Description

Definition at line 15 of file DeleteQuery.php.

## Member Function Documentation

## ◆ deleteFrom()

eZ\Publish\Core\Persistence\Database\DeleteQuery::deleteFrom | ( |  | $table | ) |

Opens the query and sets the target table to $table.

deleteFrom() returns a pointer to $this.

Parameters

  string | $table |

Returns
  \eZ\Publish\Core\Persistence\Database\DeleteQuery

Implemented in eZ\Publish\Core\Persistence\Doctrine\DeleteDoctrineQuery.

## ◆ where()

eZ\Publish\Core\Persistence\Database\DeleteQuery::where | ( |  | ) |

Adds a where clause with logical expressions to the query.

where() accepts an arbitrary number of parameters. Each parameter must contain a logical expression or an array with logical expressions. where() could be invoked several times. All provided arguments added to the end of $whereString and form final WHERE clause of the query. If you specify multiple logical expression they are connected using a logical and.

Example: `$q->deleteFrom( 'MyTable' )->where( $q->eq( 'id', 1 ) );`

Exceptions

Implemented in eZ\Publish\Core\Persistence\Doctrine\DeleteDoctrineQuery.

The documentation for this interface was generated from the following file:

- DeleteQuery.php

Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.