src/ORM/Connect/TempDatabase.php
public function clearAllData()
    {
        if (!$this->isUsed()) {
            return;
        }

        $this->getConn()->clearAllData();

        // Some DataExtensions keep a static cache of information that needs to
        // be reset whenever the database is cleaned out
        $classes = array_merge(
            ClassInfo::subclassesFor(DataExtension::class),
            ClassInfo::subclassesFor(DataObject::class)
        );
        foreach ($classes as $class) {
            $toCall = array($class, 'on_db_reset');
            if (is_callable($toCall)) {
                call_user_func($toCall);
            }
        }
    }
public function clearAllData()
    {
        if (!$this->isUsed()) {
            return;
        }

        $this->getConn()->clearAllData();

        // Some DataExtensions keep a static cache of information that needs to
        // be reset whenever the database is cleaned out
        $classes = array_merge(
            ClassInfo::subclassesFor(DataExtension::class),
            ClassInfo::subclassesFor(DataObject::class)
        );
        foreach ($classes as $class) {
            $toCall = array($class, 'on_db_reset');
            if (is_callable($toCall)) {
                call_user_func($toCall);
            }
        }
    }
public function clearAllData ( ) { if ( ! $ this -> isUsed ( ) ) { return ; } $ this -> getConn ( ) -> clearAllData ( ) ; // Some DataExtensions keep a static cache of information that needs to // be reset whenever the database is cleaned out $ classes = array_merge ( ClassInfo :: subclassesFor ( DataExtension :: class ) , ClassInfo :: subclassesFor ( DataObject :: class ) ) ; foreach ( $ classes as $ class ) { $ toCall = array ( $ class , 'on_db_reset' ) ; if ( is_callable ( $ toCall ) ) { call_user_func ( $ toCall ) ; } } }
Remove all content from the temporary database.
Remove all content from the temporary database .