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

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

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

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

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

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

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

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

public IsOptional ( ) : boolean
Результат boolean

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

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