PHP Class GraphAware\Neo4j\OGM\UnitOfWork

Datei anzeigen Open project: graphaware/neo4j-php-ogm Class Usage Examples

Protected Properties

Property Type Description
$entitiesById
$entityIds
$entityManager EntityManager
$entityStateReferences
$entityStates
$eventManager Doctrine\Common\EventManager
$flushOperationProcessor
$hashesMap
$managedEntities
$managedRelationshipEntities
$managedRelationshipEntitiesMap
$managedRelationshipReferences
$nodesScheduledForCreate
$nodesScheduledForDelete
$nodesScheduledForUpdate
$persisters
$reEntitiesById
$reEntityIds
$relEntitesScheduledForDelete
$relEntitesScheduledForUpdate
$relEntitiesById
$relEntitiesMap
$relEntitiesScheduledForCreate
$relationshipEntityPersisters
$relationshipEntityReferences
$relationshipEntityStates
$relationshipPersister
$relationshipsScheduledForCreated
$relationshipsScheduledForDelete

Public Methods

Method Description
__construct ( EntityManager $manager )
addManaged ( $entity )
addManagedRelationshipEntity ( $entity, $pointOfView, $field )
addManagedRelationshipReference ( $entityA, $entityB, $field, RelationshipMetadata $relationship )
cascadePersist ( $entity, array &$visited )
detectEntityChanges ( )
detectRelationshipEntityChanges ( )
detectRelationshipReferenceChanges ( )
doPersist ( $entity, array &$visited )
flush ( )
getEntityById ( integer $id ) : object | null
getEntityState ( $entity, $assumedState = null )
getNodesScheduledForCreate ( ) : array
getNodesScheduledForDelete ( ) : array
getNodesScheduledForUpdate ( ) : array
getOriginalEntityState ( integer $id ) : object | null Get the original state of an entity when it was loaded from the database.
getPersister ( $class ) : EntityPersister
getRelEntitesScheduledForDelete ( ) : array
getRelEntitesScheduledForUpdate ( ) : array
getRelEntitiesScheduledForCreate ( ) : array
getRelationshipEntityById ( $id )
getRelationshipEntityPersister ( $class ) : RelationshipEntityPersister
getRelationshipsScheduledForCreated ( ) : array
getRelationshipsScheduledForDelete ( ) : array
hydrateGraphId ( $oid, $gid )
persist ( $entity )
persistRelationship ( $entityA, $entityB, RelationshipMetadata $relationship, array &$visited )
persistRelationshipEntity ( $entity, $pov )
scheduleDelete ( $entity )
scheduleRelationshipReferenceForCreate ( $entity, $target, RelationshipMetadata $relationship )
scheduleRelationshipReferenceForDelete ( $entity, $target, RelationshipMetadata $relationship )
traverseRelationshipEntities ( $entity, array &$visited = [] )

Private Methods

Method Description
checkRelationshipEntityDeletions ( $entity )
computeChanges ( $entityA, $entityB )
computeRelationshipEntityChanges ( $entityA, $entityB )
manageEntityReference ( $oid )

Method Details

__construct() public method

public __construct ( EntityManager $manager )
$manager EntityManager

addManaged() public method

public addManaged ( $entity )

addManagedRelationshipEntity() public method

public addManagedRelationshipEntity ( $entity, $pointOfView, $field )

addManagedRelationshipReference() public method

public addManagedRelationshipReference ( $entityA, $entityB, $field, RelationshipMetadata $relationship )
$relationship GraphAware\Neo4j\OGM\Metadata\RelationshipMetadata

cascadePersist() public method

public cascadePersist ( $entity, array &$visited )
$visited array

detectEntityChanges() public method

public detectEntityChanges ( )

detectRelationshipEntityChanges() public method

detectRelationshipReferenceChanges() public method

doPersist() public method

public doPersist ( $entity, array &$visited )
$visited array

flush() public method

public flush ( )

getEntityById() public method

public getEntityById ( integer $id ) : object | null
$id integer
return object | null

getEntityState() public method

public getEntityState ( $entity, $assumedState = null )

getNodesScheduledForCreate() public method

public getNodesScheduledForCreate ( ) : array
return array

getNodesScheduledForDelete() public method

public getNodesScheduledForDelete ( ) : array
return array

getNodesScheduledForUpdate() public method

public getNodesScheduledForUpdate ( ) : array
return array

getOriginalEntityState() public method

Get the original state of an entity when it was loaded from the database.
public getOriginalEntityState ( integer $id ) : object | null
$id integer
return object | null

getPersister() public method

public getPersister ( $class ) : EntityPersister
$class
return GraphAware\Neo4j\OGM\Persister\EntityPersister

getRelEntitesScheduledForDelete() public method

getRelEntitesScheduledForUpdate() public method

getRelEntitiesScheduledForCreate() public method

getRelationshipEntityById() public method

public getRelationshipEntityById ( $id )

getRelationshipEntityPersister() public method

public getRelationshipEntityPersister ( $class ) : RelationshipEntityPersister
$class
return GraphAware\Neo4j\OGM\Persister\RelationshipEntityPersister

getRelationshipsScheduledForCreated() public method

getRelationshipsScheduledForDelete() public method

hydrateGraphId() public method

public hydrateGraphId ( $oid, $gid )

persist() public method

public persist ( $entity )

persistRelationship() public method

public persistRelationship ( $entityA, $entityB, RelationshipMetadata $relationship, array &$visited )
$relationship GraphAware\Neo4j\OGM\Metadata\RelationshipMetadata
$visited array

persistRelationshipEntity() public method

public persistRelationshipEntity ( $entity, $pov )

scheduleDelete() public method

public scheduleDelete ( $entity )

scheduleRelationshipReferenceForCreate() public method

public scheduleRelationshipReferenceForCreate ( $entity, $target, RelationshipMetadata $relationship )
$relationship GraphAware\Neo4j\OGM\Metadata\RelationshipMetadata

scheduleRelationshipReferenceForDelete() public method

public scheduleRelationshipReferenceForDelete ( $entity, $target, RelationshipMetadata $relationship )
$relationship GraphAware\Neo4j\OGM\Metadata\RelationshipMetadata

traverseRelationshipEntities() public method

public traverseRelationshipEntities ( $entity, array &$visited = [] )
$visited array

Property Details

$entitiesById protected_oe property

protected $entitiesById

$entityIds protected_oe property

protected $entityIds

$entityManager protected_oe property

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

$entityStateReferences protected_oe property

protected $entityStateReferences

$entityStates protected_oe property

protected $entityStates

$eventManager protected_oe property

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

$flushOperationProcessor protected_oe property

protected $flushOperationProcessor

$hashesMap protected_oe property

protected $hashesMap

$managedEntities protected_oe property

protected $managedEntities

$managedRelationshipEntities protected_oe property

protected $managedRelationshipEntities

$managedRelationshipEntitiesMap protected_oe property

protected $managedRelationshipEntitiesMap

$managedRelationshipReferences protected_oe property

protected $managedRelationshipReferences

$nodesScheduledForCreate protected_oe property

protected $nodesScheduledForCreate

$nodesScheduledForDelete protected_oe property

protected $nodesScheduledForDelete

$nodesScheduledForUpdate protected_oe property

protected $nodesScheduledForUpdate

$persisters protected_oe property

protected $persisters

$reEntitiesById protected_oe property

protected $reEntitiesById

$reEntityIds protected_oe property

protected $reEntityIds

$relEntitesScheduledForDelete protected_oe property

protected $relEntitesScheduledForDelete

$relEntitesScheduledForUpdate protected_oe property

protected $relEntitesScheduledForUpdate

$relEntitiesById protected_oe property

protected $relEntitiesById

$relEntitiesMap protected_oe property

protected $relEntitiesMap

$relEntitiesScheduledForCreate protected_oe property

protected $relEntitiesScheduledForCreate

$relationshipEntityPersisters protected_oe property

protected $relationshipEntityPersisters

$relationshipEntityReferences protected_oe property

protected $relationshipEntityReferences

$relationshipEntityStates protected_oe property

protected $relationshipEntityStates

$relationshipPersister protected_oe property

protected $relationshipPersister

$relationshipsScheduledForCreated protected_oe property

protected $relationshipsScheduledForCreated

$relationshipsScheduledForDelete protected_oe property

protected $relationshipsScheduledForDelete