GraphAware\Neo4j\OGM\UnitOfWork::addManagedRelationshipReference PHP Method

addManagedRelationshipReference() public method

public addManagedRelationshipReference ( $entityA, $entityB, $field, RelationshipMetadata $relationship )
$relationship GraphAware\Neo4j\OGM\Metadata\RelationshipMetadata
    public function addManagedRelationshipReference($entityA, $entityB, $field, RelationshipMetadata $relationship)
    {
        $aoid = spl_object_hash($entityA);
        $boid = spl_object_hash($entityB);
        $this->managedRelationshipReferences[$aoid][$field][] = ['entity' => $aoid, 'target' => $boid, 'rel' => $relationship];
        $this->addManaged($entityA);
        $this->addManaged($entityB);
        //print_r($this->managedRelationshipReferences);
    }