PHP Class GraphAware\Neo4j\OGM\EntityManager

Inheritance: implements Doctrine\Common\Persistence\ObjectManager
Mostra file Open project: graphaware/neo4j-php-ogm Class Usage Examples

Protected Properties

Property Type Description
$annotationDriver GraphAware\Neo4j\OGM\Mapping\AnnotationDriver
$databaseDriver GraphAware\Neo4j\Client\ClientInterface
$eventManager Doctrine\Common\EventManager
$loadedMetadata GraphAware\Neo4j\OGM\Metadata\GraphEntityMetadata[] | GraphAware\Neo4j\OGM\Metadata\RelationshipEntityMetadata[]
$metadataFactory GraphAware\Neo4j\OGM\Metadata\Factory\GraphEntityMetadataFactory
$repositories GraphAware\Neo4j\OGM\Repository\BaseRepository[]
$resultMappers GraphAware\Neo4j\OGM\Metadata\QueryResultMapper[]
$uow UnitOfWork

Public Methods

Method Description
__construct ( GraphAware\Neo4j\Client\ClientInterface $databaseDriver, $cacheDirectory = null, Doctrine\Common\EventManager $eventManager = null )
buildWithHost ( string $host ) : EntityManager
clear ( $objectName = null )
contains ( $object )
create ( string $host, string | null $cacheDir = null, Doctrine\Common\EventManager $eventManager = null ) : EntityManager
detach ( $object )
find ( $className, $id )
flush ( )
getAnnotationDriver ( ) : AnnotationDriver
getClassMetadata ( $className )
getClassMetadataFor ( $class ) : NodeEntityMetadata
getDatabaseDriver ( ) : Client
getEventManager ( ) : Doctrine\Common\EventManager
getMetadataFactory ( )
getRelationshipEntityMetadata ( string $class ) : RelationshipEntityMetadata
getRepository ( string $class ) : BaseRepository
getResultMappingMetadata ( $class )
getUnitOfWork ( ) : UnitOfWork
initializeObject ( $obj )
merge ( $object )
persist ( $entity )
refresh ( $object )
remove ( $object )

Method Details

__construct() public method

public __construct ( GraphAware\Neo4j\Client\ClientInterface $databaseDriver, $cacheDirectory = null, Doctrine\Common\EventManager $eventManager = null )
$databaseDriver GraphAware\Neo4j\Client\ClientInterface
$eventManager Doctrine\Common\EventManager

buildWithHost() public static method

public static buildWithHost ( string $host ) : EntityManager
$host string
return EntityManager

clear() public method

public clear ( $objectName = null )

contains() public method

public contains ( $object )

create() public static method

public static create ( string $host, string | null $cacheDir = null, Doctrine\Common\EventManager $eventManager = null ) : EntityManager
$host string
$cacheDir string | null
$eventManager Doctrine\Common\EventManager
return EntityManager

detach() public method

public detach ( $object )

find() public method

public find ( $className, $id )

flush() public method

public flush ( )

getAnnotationDriver() public method

public getAnnotationDriver ( ) : AnnotationDriver
return GraphAware\Neo4j\OGM\Mapping\AnnotationDriver

getClassMetadata() public method

public getClassMetadata ( $className )

getClassMetadataFor() public method

public getClassMetadataFor ( $class ) : NodeEntityMetadata
$class
return GraphAware\Neo4j\OGM\Metadata\NodeEntityMetadata

getDatabaseDriver() public method

public getDatabaseDriver ( ) : Client
return GraphAware\Neo4j\Client\Client

getEventManager() public method

public getEventManager ( ) : Doctrine\Common\EventManager
return Doctrine\Common\EventManager

getMetadataFactory() public method

public getMetadataFactory ( )

getRelationshipEntityMetadata() public method

public getRelationshipEntityMetadata ( string $class ) : RelationshipEntityMetadata
$class string
return GraphAware\Neo4j\OGM\Metadata\RelationshipEntityMetadata

getRepository() public method

public getRepository ( string $class ) : BaseRepository
$class string
return GraphAware\Neo4j\OGM\Repository\BaseRepository

getResultMappingMetadata() public method

public getResultMappingMetadata ( $class )

getUnitOfWork() public method

public getUnitOfWork ( ) : UnitOfWork
return UnitOfWork

initializeObject() public method

public initializeObject ( $obj )

merge() public method

public merge ( $object )

persist() public method

public persist ( $entity )

refresh() public method

public refresh ( $object )

remove() public method

public remove ( $object )

Property Details

$annotationDriver protected_oe property

protected AnnotationDriver,GraphAware\Neo4j\OGM\Mapping $annotationDriver
return GraphAware\Neo4j\OGM\Mapping\AnnotationDriver

$databaseDriver protected_oe property

protected ClientInterface,GraphAware\Neo4j\Client $databaseDriver
return GraphAware\Neo4j\Client\ClientInterface

$eventManager protected_oe property

protected EventManager,Doctrine\Common $eventManager
return Doctrine\Common\EventManager

$loadedMetadata protected_oe property

protected GraphEntityMetadata[],GraphAware\Neo4j\OGM\Metadata|RelationshipEntityMetadata[],GraphAware\Neo4j\OGM\Metadata $loadedMetadata
return GraphAware\Neo4j\OGM\Metadata\GraphEntityMetadata[] | GraphAware\Neo4j\OGM\Metadata\RelationshipEntityMetadata[]

$metadataFactory protected_oe property

protected GraphEntityMetadataFactory,GraphAware\Neo4j\OGM\Metadata\Factory $metadataFactory
return GraphAware\Neo4j\OGM\Metadata\Factory\GraphEntityMetadataFactory

$repositories protected_oe property

protected BaseRepository[],GraphAware\Neo4j\OGM\Repository $repositories
return GraphAware\Neo4j\OGM\Repository\BaseRepository[]

$resultMappers protected_oe property

protected QueryResultMapper[],GraphAware\Neo4j\OGM\Metadata $resultMappers
return GraphAware\Neo4j\OGM\Metadata\QueryResultMapper[]

$uow protected_oe property

protected UnitOfWork,GraphAware\Neo4j\OGM $uow
return UnitOfWork