PHP Class GraphAware\Neo4j\OGM\Repository\BaseRepository

Show file Open project: graphaware/neo4j-php-ogm

Protected Properties

Property Type Description
$classMetadata GraphAware\Neo4j\OGM\Metadata\ClassMetadata
$className string
$entityManager GraphAware\Neo4j\OGM\EntityManager
$lazyLoadingFactory
$loadedReflClasses ReflectionClass[]
$reflectionClass ReflectionClass

Public Methods

Method Description
__construct ( NodeEntityMetadata $classMetadata, EntityManager $manager, string $className )
findAll ( array $filters = [] ) : object[]
findBy ( string $key, mixed $value, $isId = false ) : object[]
findOneBy ( string $key, mixed $value ) : null | object
findOneById ( $id )
hydrate ( GraphAware\Common\Result\Record $record, $andCheckAssociations = true, $identifier = 'n', $className = null, $andAddLazyLoad = false, $considerAllLazy = false )
hydrateRelationshipEntity ( RelationshipEntityMetadata $reMetadata, array $reMap, NodeEntityMetadata $startNodeMetadata, NodeEntityMetadata $endNodeMetadata, $baseInstance, RelationshipMetadata $relationshipEntity, $pov = null )
paginated ( $first, $max, array $order = [] )
setInversedAssociation ( $baseInstance, $otherInstance, $relationshipKey )

Protected Methods

Method Description
nativeQuery ( $query, $parameters, QueryResultMapping $resultMapping )

Private Methods

Method Description
getHydrator ( $target )
getPagination ( array $filters )
getReflectionClass ( $className ) : ReflectionClass
getTargetFullClassName ( $className ) : string
hydrateNode ( GraphAware\Common\Type\Node $node, $className = null, $andProxy = false )
hydrateQueryRecord ( QueryResultMapper $resultMapper, GraphAware\Common\Result\Record $record )
hydrateResultSet ( GraphAware\Common\Result\Result $result )

Method Details

__construct() public method

public __construct ( NodeEntityMetadata $classMetadata, EntityManager $manager, string $className )
$classMetadata GraphAware\Neo4j\OGM\Metadata\NodeEntityMetadata
$manager GraphAware\Neo4j\OGM\EntityManager
$className string

findAll() public method

public findAll ( array $filters = [] ) : object[]
$filters array
return object[]

findBy() public method

public findBy ( string $key, mixed $value, $isId = false ) : object[]
$key string
$value mixed
return object[]

findOneBy() public method

public findOneBy ( string $key, mixed $value ) : null | object
$key string
$value mixed
return null | object

findOneById() public method

public findOneById ( $id )

hydrate() public method

public hydrate ( GraphAware\Common\Result\Record $record, $andCheckAssociations = true, $identifier = 'n', $className = null, $andAddLazyLoad = false, $considerAllLazy = false )
$record GraphAware\Common\Result\Record

hydrateRelationshipEntity() public method

public hydrateRelationshipEntity ( RelationshipEntityMetadata $reMetadata, array $reMap, NodeEntityMetadata $startNodeMetadata, NodeEntityMetadata $endNodeMetadata, $baseInstance, RelationshipMetadata $relationshipEntity, $pov = null )
$reMetadata GraphAware\Neo4j\OGM\Metadata\RelationshipEntityMetadata
$reMap array
$startNodeMetadata GraphAware\Neo4j\OGM\Metadata\NodeEntityMetadata
$endNodeMetadata GraphAware\Neo4j\OGM\Metadata\NodeEntityMetadata
$relationshipEntity GraphAware\Neo4j\OGM\Metadata\RelationshipMetadata

nativeQuery() protected method

protected nativeQuery ( $query, $parameters, QueryResultMapping $resultMapping )
$resultMapping GraphAware\Neo4j\OGM\Query\QueryResultMapping

paginated() public method

public paginated ( $first, $max, array $order = [] )
$order array

setInversedAssociation() public method

public setInversedAssociation ( $baseInstance, $otherInstance, $relationshipKey )

Property Details

$classMetadata protected property

protected ClassMetadata,GraphAware\Neo4j\OGM\Metadata $classMetadata
return GraphAware\Neo4j\OGM\Metadata\ClassMetadata

$className protected property

protected string $className
return string

$entityManager protected property

protected EntityManager,GraphAware\Neo4j\OGM $entityManager
return GraphAware\Neo4j\OGM\EntityManager

$lazyLoadingFactory protected property

protected $lazyLoadingFactory

$loadedReflClasses protected property

protected ReflectionClass[] $loadedReflClasses
return ReflectionClass[]

$reflectionClass protected property

protected ReflectionClass $reflectionClass
return ReflectionClass