GraphAware\Neo4j\OGM\Persister\FlushOperationProcessor::processNodesCreationJob PHP Method

processNodesCreationJob() public method

public processNodesCreationJob ( array $nodesScheduledForCreate )
$nodesScheduledForCreate array
    public function processNodesCreationJob(array $nodesScheduledForCreate)
    {
        $byLabelsMap = [];
        foreach ($nodesScheduledForCreate as $node) {
            $metadata = $this->em->getClassMetadataFor(get_class($node));
            $byLabelsMap[$metadata->getLabel()][] = $node;
        }
        return $this->createLabeledNodesCreationStack($byLabelsMap);
    }