Neos\Neos\EventLog\Domain\Repository\EventRepository::removeAll PHP Method

removeAll() public method

Remove all events without checking foreign keys. Needed for clearing the table during tests.
public removeAll ( ) : void
return void
    public function removeAll()
    {
        $classMetaData = $this->entityManager->getClassMetadata($this->getEntityClassName());
        $connection = $this->entityManager->getConnection();
        $databasePlatform = $connection->getDatabasePlatform();
        $truncateTableQuery = $databasePlatform->getTruncateTableSql($classMetaData->getTableName());
        $connection->executeUpdate($truncateTableQuery);
    }