/** * Deletes persistent objects using the given $query. * * The $query should be created using {@link createDeleteQuery()}. * * Attention: Every call to this method will cause the internal {@link * ezcPersistentIdentityMap} to be completly reset. This is neccessary to * avoid inconsistencies, because the session cannot trace which objects * are updated by the query. * * @throws ezcPersistentQueryException * if the delete query failed. * * @param ezcQueryDelete $query */ public function deleteFromQuery(ezcQueryDelete $query) { $this->identityMap->reset(); return $this->session->deleteFromQuery($query); }