PHP Interface Storm\Core\Object\IEntityProperty

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

Méthodes publiques

Méthode 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 méthode

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
Résultat RelationshipChange

IsOptional() public méthode

public IsOptional ( ) : boolean
Résultat boolean

Persist() public méthode

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
Résultat RelationshipChange