Mongolid\Model\Relations::detach PHP Метод

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

Removes a document _id reference from an attribute. It will remove the _id of the given $obj from inside the given $field.
public detach ( string $field, mixed &$obj ) : void
$field string Field where the reference is stored.
$obj mixed Document, model instance or _id that have been referenced by $field.
Результат void
    public function detach(string $field, &$obj)
    {
        $embedder = Ioc::make(DocumentEmbedder::class);
        $embedder->detach($this, $field, $obj);
    }