PHP Интерфейс Storm\Core\Object\ICollectionProperty

Автор: Elliot Levin ([email protected])
Наследование: extends Storm\Core\Object\IRelationshipProperty
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

Discard() публичный метод

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
Результат RelationshipChange[]

Persist() публичный метод

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
Результат RelationshipChange[]