League\Monga\Query\Update::upsert PHP Метод

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

Set the upsert option.
public upsert ( boolean $upsert = true ) : object
$upsert boolean whether to allow upserts
Результат object $this
    public function upsert($upsert = true)
    {
        $this->upsert = (bool) $upsert;
        return $this;
    }