Bravo3\Orm\Drivers\Common\UnitOfWork::purge PHP Method

purge() public method

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

Usage Example

Exemplo n.º 1
0
 /**
  * Purge the current unit of work, clearing any unexecuted commands
  *
  * @return void
  */
 public function purge()
 {
     $this->unit_of_work->purge();
 }