PHP Interface Storm\Core\Object\ICollectionProperty

Author: Elliot Levin ([email protected])
Inheritance: extends Storm\Core\Object\IRelationshipProperty
Mostra file Open project: timetoogo/penumbra

Public Methods

Method Description
Discard ( UnitOfWork $UnitOfWork, object $Entity ) : RelationshipChange[] This method should be implemented such that it returns the nessecary relationship changes and discards all the related entities.
Persist ( UnitOfWork $UnitOfWork, object $Entity ) : RelationshipChange[] This method should be implemented such that it returns the nessecary relationship changes and syncs the related entities.

Method Details

Discard() public method

This method should be implemented such that it returns the nessecary relationship changes and discards all the related entities.
public Discard ( UnitOfWork $UnitOfWork, object $Entity ) : RelationshipChange[]
$UnitOfWork UnitOfWork The unit of work to persist to
$Entity object The parent entity
return RelationshipChange[]

Persist() public method

This method should be implemented such that it returns the nessecary relationship changes and syncs the related entities.
public Persist ( UnitOfWork $UnitOfWork, object $Entity ) : RelationshipChange[]
$UnitOfWork UnitOfWork The unit of work to persist to
$Entity object The parent entity
return RelationshipChange[]