Storm\Drivers\Base\Object\Properties\Relationships\NonIdentifying::GetDiscardedRelationship PHP Method

GetDiscardedRelationship() public method

public GetDiscardedRelationship ( Domain $Domain, UnitOfWork $UnitOfWork, $ParentEntity, $RelatedEntity )
$Domain Storm\Core\Object\Domain
$UnitOfWork Storm\Core\Object\UnitOfWork
    public function GetDiscardedRelationship(Object\Domain $Domain, Object\UnitOfWork $UnitOfWork, $ParentEntity, $RelatedEntity)
    {
        if ($this->CascadeDiscard) {
            $UnitOfWork->Discard($RelatedEntity);
        }
        return $Domain->DiscardedRelationship($ParentEntity, $RelatedEntity);
    }