PHP Class Storm\Drivers\Base\Mapping\Mappings\EntityPropertyToOneRelationMapping

Inheritance: extends RelationshipPropertyRelationMapping, implements Storm\Core\Mapping\IEntityPropertyToOneRelationMapping
Show file Open project: timetoogo/penumbra Class Usage Examples

Public Methods

Method Description
GetEntityProperty ( ) : Storm\Core\Object\IEntityProperty
GetToOneRelation ( ) : Storm\Core\Relational\IToOneRelation
Persist ( Transaction $Transaction, ResultRow $ParentData, RelationshipChange $RelationshipChange )
__construct ( Storm\Core\Object\IEntityProperty $EntityProperty, Storm\Core\Relational\IToOneRelation $ToOneRelation )

Protected Methods

Method Description
MakeLazyRevivalData ( DomainDatabaseMap $DomainDatabaseMap, ResultRow $ParentData, callable $RevivalDataLoader )
MapParentRowKeysToRelatedRevivalData ( DomainDatabaseMap $DomainDatabaseMap, array $ParentRows, array $RelatedRows )

Method Details

GetEntityProperty() final public method

final public GetEntityProperty ( ) : Storm\Core\Object\IEntityProperty
return Storm\Core\Object\IEntityProperty

GetToOneRelation() final public method

final public GetToOneRelation ( ) : Storm\Core\Relational\IToOneRelation
return Storm\Core\Relational\IToOneRelation

MakeLazyRevivalData() final protected method

final protected MakeLazyRevivalData ( DomainDatabaseMap $DomainDatabaseMap, ResultRow $ParentData, callable $RevivalDataLoader )
$DomainDatabaseMap Storm\Core\Mapping\DomainDatabaseMap
$ParentData Storm\Core\Relational\ResultRow
$RevivalDataLoader callable

MapParentRowKeysToRelatedRevivalData() final protected method

final protected MapParentRowKeysToRelatedRevivalData ( DomainDatabaseMap $DomainDatabaseMap, array $ParentRows, array $RelatedRows )
$DomainDatabaseMap Storm\Core\Mapping\DomainDatabaseMap
$ParentRows array
$RelatedRows array

Persist() public method

public Persist ( Transaction $Transaction, ResultRow $ParentData, RelationshipChange $RelationshipChange )
$Transaction Storm\Core\Relational\Transaction
$ParentData Storm\Core\Relational\ResultRow
$RelationshipChange Storm\Core\Relational\RelationshipChange

__construct() public method

public __construct ( Storm\Core\Object\IEntityProperty $EntityProperty, Storm\Core\Relational\IToOneRelation $ToOneRelation )
$EntityProperty Storm\Core\Object\IEntityProperty
$ToOneRelation Storm\Core\Relational\IToOneRelation