Storm\Drivers\Base\Object\Properties\EntityProperty::ReviveNull PHP Method

ReviveNull() protected method

protected ReviveNull ( Domain $Domain, $Entity )
$Domain Storm\Core\Object\Domain
    protected function ReviveNull(Object\Domain $Domain, $Entity)
    {
        if ($this->IsOptional) {
            return null;
        } else {
            throw new \Storm\Core\UnexpectedValueException('Cannot revive entity property for %s, related entity %s is required', $this->GetEntityMap()->GetEntityType(), $this->GetEntityType());
        }
    }