GraphAware\Neo4j\OGM\Finder\RelationshipsFinder::__construct PHP Method

__construct() public method

public __construct ( EntityManager $em, $className, RelationshipMetadata $relationshipMetadata )
$em GraphAware\Neo4j\OGM\EntityManager
$relationshipMetadata GraphAware\Neo4j\OGM\Metadata\RelationshipMetadata
    public function __construct(EntityManager $em, $className, RelationshipMetadata $relationshipMetadata)
    {
        $this->em = $em;
        $this->className = $className;
        $this->relationshipMetadata = $relationshipMetadata;
    }

Usage Example

 public function __construct(\GraphAware\Neo4j\OGM\EntityManager $em, $className, \GraphAware\Neo4j\OGM\Metadata\RelationshipMetadata $relationshipMetadata, $baseInstance)
 {
     parent::__construct($em, $className, $relationshipMetadata);
     $this->relationshipEntityMetadata = $this->em->getRelationshipEntityMetadata($relationshipMetadata->getRelationshipEntityClass());
     $this->baseInstance = $baseInstance;
 }