Jackalope\Transport\DoctrineDBAL\Client::storeNodes PHP Method

storeNodes() public method

{@inheritDoc}
public storeNodes ( array $operations )
$operations array
    public function storeNodes(array $operations)
    {
        $this->assertLoggedIn();
        $additionalAddOperations = array();
        foreach ($operations as $operation) {
            if ($operation->node->isDeleted()) {
                $properties = $operation->node->getPropertiesForStoreDeletedNode();
            } else {
                $additionalAddOperations = array_merge($additionalAddOperations, $this->getNodeProcessor()->process($operation->node));
                $properties = $operation->node->getProperties();
            }
            $this->storeNode($operation->srcPath, $properties);
        }
        if (!empty($additionalAddOperations)) {
            $this->storeNodes($additionalAddOperations);
        }
    }

Usage Example

 /**
  * {@inheritDoc}
  */
 public function storeNodes(array $operations)
 {
     parent::storeNodes($operations);
     // we do not have the node here, otherwise we could just use clearNodeCache() on pre-existing parents and then just invalidate all queries
     $this->clearCaches();
 }
All Usage Examples Of Jackalope\Transport\DoctrineDBAL\Client::storeNodes