Storm\Core\Object\IEntityMap::Discard PHP Method

Discard() public method

Discards an entity's relationships to the supplied unit of work and returns the discardence data.
public Discard ( UnitOfWork $UnitOfWork, object $Entity ) : DiscardenceData
$UnitOfWork UnitOfWork The unit of work to discard from
$Entity object The entity to discard
return DiscardenceData The discardence data of the entity
    public function Discard(UnitOfWork $UnitOfWork, $Entity);