public function clearLog()
    {
        $qb = $this->createQueryBuilder();
        $query = $qb->getConnection()
            ->getDatabasePlatform()
            ->getTruncateTableSQL($this->getTableName());

        return $qb->getConnection()->executeQuery($query)->execute();
    }
public function clearLog()
    {
        $qb = $this->createQueryBuilder();
        $query = $qb->getConnection()
            ->getDatabasePlatform()
            ->getTruncateTableSQL($this->getTableName());

        return $qb->getConnection()->executeQuery($query)->execute();
    }
public function clearLog ( ) { $ qb = $ this -> createQueryBuilder ( ) ; $ query = $ qb -> getConnection ( ) -> getDatabasePlatform ( ) -> getTruncateTableSQL ( $ this -> getTableName ( ) ) ; return $ qb -> getConnection ( ) -> executeQuery ( $ query ) -> execute ( ) ; }
Clear the log table.

@return bool
Clear the log table .