Method | Description | |
---|---|---|
Apply ( object $Entity, |
Applies the supplied property data to the supplied entity instance. | |
BuildUnitOfWork ( array $EntitiesToPersist = [], array $ProceduresToExecute = [], array $EntitiesToDiscard = [], array $CriterionToDiscard = [] ) : |
Constructs a unit of work instance containing the supplied operations to commit. | |
Discard ( |
Discard an entity relationships to the supplied unit of work and returns the entity's discardence data. | |
DiscardedIdentifyingRelationship ( $ParentEntity, object $ChildEntity, |
Constructs a discarded identifying relationship between the parent and child entity. | |
DiscardedRelationship ( object $Entity, object $RelatedEntity ) : |
Constructs a discarded non-identifying relationship between the two supplied entities. | |
DoShareIdentity ( object $Entity, object $OtherEntity ) : boolean | Determines is two entities share the same identity. | |
GetEntityMap ( string $EntityType ) : Storm\Core\Object\IEntityMap | null | ||
GetEntityMaps ( ) : Storm\Core\Object\IEntityMap[] | ||
HasEntityMap ( string $EntityType ) : boolean | ||
HasIdentity ( object $Entity ) : boolean | ||
Identity ( object $Entity ) : |
Gets the identity from the supplied entity. | |
LoadEntities ( |
Loads an array of entities with the supplied revival data. | |
LoadEntity ( |
Loads an entity instance with the supplied revival data. | |
Persist ( |
Persists an entity relationships to the supplied unit of work and returns the entity's persistence data. | |
PersistRelationships ( |
Persists an entity relationships to the supplied unit of work. | |
PersistedIdentifyingRelationship ( $ParentEntity, object $ChildEntity, |
Constructs a persisted identifying relationship between the parent and child entity. | |
PersistedRelationship ( $ParentEntity, object $RelatedEntity ) : |
Constructs a discarded non-identifying relationship between the two supplied entities. | |
ReviveEntities ( string $EntityType, array $RevivalData ) : object[] | Revives an array of entities from the supplied array of revival data. | |
__construct ( ) |
Method | Description | |
---|---|---|
AddEntityMap ( Storm\Core\Object\IEntityMap $EntityMap ) : void | Adds an entity map to the domain. | |
RegisterEntityMaps ( |
The method to register the entity maps within this domain. |
Method | Description | |
---|---|---|
VerifyEntity ( string $Method, object $Entity ) : Storm\Core\Object\IEntityMap | Verifies that an entity is valid in this domain. |
final protected AddEntityMap ( Storm\Core\Object\IEntityMap $EntityMap ) : void | ||
$EntityMap | Storm\Core\Object\IEntityMap | The entity map to add. |
return | void |
final public BuildUnitOfWork ( array $EntitiesToPersist = [], array $ProceduresToExecute = [], array $EntitiesToDiscard = [], array $CriterionToDiscard = [] ) : |
||
$EntitiesToPersist | array | |
$ProceduresToExecute | array | |
$EntitiesToDiscard | array | |
$CriterionToDiscard | array | |
return | The constructed unit of work |
final public DiscardedIdentifyingRelationship ( $ParentEntity, object $ChildEntity, |
||
$ChildEntity | object | |
$UnitOfWork | ||
return | The discarded relationship |
final public DiscardedRelationship ( object $Entity, object $RelatedEntity ) : |
||
$Entity | object | |
$RelatedEntity | object | |
return | The discarded relationship |
final public GetEntityMap ( string $EntityType ) : Storm\Core\Object\IEntityMap | null | ||
$EntityType | string | The type of entity that the entity map represents |
return | Storm\Core\Object\IEntityMap | null | The entity map or null if it is not registered |
final public GetEntityMaps ( ) : Storm\Core\Object\IEntityMap[] | ||
return | Storm\Core\Object\IEntityMap[] | The registered entity maps |
final public HasEntityMap ( string $EntityType ) : boolean | ||
$EntityType | string | The type of entity |
return | boolean |
final public HasIdentity ( object $Entity ) : boolean | ||
$Entity | object | The entity to check |
return | boolean | Whether or not the entity has an identity |
final public LoadEntities ( |
||
$RevivalData | The revival data to load the entity with | |
$Entities | array | The entities to load |
return | void |
final public LoadEntity ( |
||
$RevivalData | The revival data to load the entity with | |
$Entity | object | The entity to load |
return | void |
final public PersistRelationships ( |
||
$UnitOfWork | The unit of work to persist to | |
$Entity | object | The entity to persist |
return | void | The persistence data of the entity |
final public PersistedIdentifyingRelationship ( $ParentEntity, object $ChildEntity, |
||
$ChildEntity | object | |
$UnitOfWork | ||
return | The persisted relationship |
final public PersistedRelationship ( $ParentEntity, object $RelatedEntity ) : |
||
$RelatedEntity | object | |
return | The persisted relationship |
abstract protected RegisterEntityMaps ( |
||
$Registrar | ||
return | void |
final public ReviveEntities ( string $EntityType, array $RevivalData ) : object[] | ||
$EntityType | string | The type of entities to revive |
$RevivalData | array | The array of revival data |
return | object[] | The revived entities |