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

getRelationshipEntityPersister() public method

public getRelationshipEntityPersister ( $class ) : RelationshipEntityPersister
$class
return GraphAware\Neo4j\OGM\Persister\RelationshipEntityPersister
    public function getRelationshipEntityPersister($class)
    {
        if (!array_key_exists($class, $this->relationshipEntityPersisters)) {
            $classMetadata = $this->entityManager->getRelationshipEntityMetadata($class);
            $this->relationshipEntityPersisters[$class] = new RelationshipEntityPersister($this->entityManager, $class, $classMetadata);
        }
        return $this->relationshipEntityPersisters[$class];
    }