src/Core/Model.php
public function remove()
    {
        if (isset($this->properties[$this->primaryKey])) {
            $this->exists = false;
            return static::deleteOne($this->client, $this->{$this->primaryKey});
        }

        throw new IdMissingException();
    }
public function remove()
    {
        if (isset($this->properties[$this->primaryKey])) {
            $this->exists = false;
            return static::deleteOne($this->client, $this->{$this->primaryKey});
        }

        throw new IdMissingException();
    }
public function remove ( ) { if ( isset ( $ this -> properties [ $ this -> primaryKey ] ) ) { $ this -> exists = false ; return static :: deleteOne ( $ this -> client , $ this -> { $ this -> primaryKey } ) ; } throw new IdMissingException ( ) ; }
Removes current instance entity if it has an id property
@return mixed
@throws IdMissingException
@throws InvalidRequestException
Removes current instance entity if it has an id property