Storm\Core\Object\UnitOfWork::SupplyIdentity PHP Method

SupplyIdentity() public method

Sets a generated identity to to the entity mapped with the supplied persistence data.
public SupplyIdentity ( PersistenceData $PersistenceData, Identity $Identity )
$PersistenceData PersistenceData The persistence data of the entity
$Identity Identity The identity to supply the entity
    public function SupplyIdentity(PersistenceData $PersistenceData, Identity $Identity)
    {
        if (isset($this->PersistenceDataEntityMap[$PersistenceData])) {
            $Entity = $this->PersistenceDataEntityMap[$PersistenceData];
            $this->Domain->Apply($Entity, $Identity);
        }
    }