PHP Interface Storm\Core\Object\IEntityProperty

Author: Elliot Levin ([email protected])
Inheritance: extends Storm\Core\Object\IRelationshipProperty
Datei anzeigen Open project: timetoogo/penumbra Interface Usage Examples

Public Methods

Method Description
Discard ( UnitOfWork $UnitOfWork, $ParentEntity ) : RelationshipChange This method should be implemented such that it returns the nessecary relationship change and discards the related entity.
IsOptional ( ) : boolean
Persist ( UnitOfWork $UnitOfWork, $ParentEntity ) : RelationshipChange This method should be implemented such that it returns the nessecary relationship change and syncs the related entity.

Method Details

Discard() public method

This method should be implemented such that it returns the nessecary relationship change and discards the related entity.
public Discard ( UnitOfWork $UnitOfWork, $ParentEntity ) : RelationshipChange
$UnitOfWork UnitOfWork The unit of work to discard from
return RelationshipChange

IsOptional() public method

public IsOptional ( ) : boolean
return boolean

Persist() public method

This method should be implemented such that it returns the nessecary relationship change and syncs the related entity.
public Persist ( UnitOfWork $UnitOfWork, $ParentEntity ) : RelationshipChange
$UnitOfWork UnitOfWork The unit of work to persist to
return RelationshipChange