src/Store/Document.php
public function setRecursive($key, $value)
    {
        if (! is_array($value)) {
            $this->set($key, $value);
            return;
        }
        $subset = $this->getSubset($key);
        $array = $value;
        foreach ($array as $key => $value) {
            $subset->setRecursive($key, $value);
        }
    }
public function setRecursive($key, $value)
    {
        if (! is_array($value)) {
            $this->set($key, $value);
            return;
        }
        $subset = $this->getSubset($key);
        $array = $value;
        foreach ($array as $key => $value) {
            $subset->setRecursive($key, $value);
        }
    }
public function setRecursive ( $ key , $ value ) { if ( ! is_array ( $ value ) ) { $ this -> set ( $ key , $ value ) ; return ; } $ subset = $ this -> getSubset ( $ key ) ; $ array = $ value ; foreach ( $ array as $ key => $ value ) { $ subset -> setRecursive ( $ key , $ value ) ; } }
Update a subdocument recursively.

@param string $key
The document key to access.
@param mixed $value
The value or subarray to associate with the key.
Update a subdocument recursively .