Bravo3\Orm\Drivers\Common\UnitOfWork::purge PHP Метод

purge() публичный Метод

Purge the command queue
public purge ( )
    public function purge()
    {
        $this->commands = [];
        return $this;
    }

Usage Example

Пример #1
0
 /**
  * Purge the current unit of work, clearing any unexecuted commands
  *
  * @return void
  */
 public function purge()
 {
     $this->unit_of_work->purge();
 }