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

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

Add a command to the queue
public queueCommand ( Command $command )
$command Command
    public function queueCommand(Command $command)
    {
        $this->commands[] = $command;
        return $this;
    }

Usage Example

Пример #1
0
 /**
  * Clear all refs from an entity (delete a ref list)
  *
  * @param string $key
  * @return void
  */
 public function clearRefs($key)
 {
     $this->unit_of_work->queueCommand(new Command('delete', ['key' => $key]));
 }