yii\mongodb\file\Cursor::__unset PHP Method

__unset() public method

PHP magic method, which is invoked on attempt of unsetting of property.
public __unset ( string $name )
$name string field name.
    public function __unset($name)
    {
        $cursor = $this->getInnerIterator();
        unset($cursor->{$name});
    }