Doctrine\ODM\PHPCR\UnitOfWork::removeAssoc PHP Метод

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

Remove an associative array form the properties stored with the node
public removeAssoc ( PHPCR\NodeInterface $node, array $mapping )
$node PHPCR\NodeInterface the node where to store the assoc array
$mapping array the field's mapping
    public function removeAssoc(NodeInterface $node, array $mapping)
    {
        if ($node->hasProperty($mapping['assoc'])) {
            $node->getProperty($mapping['assoc'])->remove();
        }
        if ($node->hasProperty($mapping['assocNulls'])) {
            $node->getProperty($mapping['assocNulls'])->remove();
        }
    }
UnitOfWork