League\FactoryMuffin\FactoryMuffin::deleteSaved PHP 메소드

deleteSaved() 공개 메소드

Delete all the saved models.
public deleteSaved ( ) : FactoryMuffin
리턴 FactoryMuffin
    public function deleteSaved()
    {
        $this->store->deleteSaved();
        return $this;
    }

Usage Example

예제 #1
0
 public function _after(TestInterface $test)
 {
     if ($this->ormModule->_getConfig('cleanup')) {
         return;
         // don't delete records if ORM is set with cleanup
     }
     $this->factoryMuffin->deleteSaved();
 }