public function getValue(IEntity $entity, string $expr): ?ValueReference
	{
		[$tokens, $sourceEntityClassName] = ConditionParserHelper::parsePropertyExpr($expr);
		$sourceEntityMeta = $this->repository->getEntityMetadata($sourceEntityClassName);
		return $this->getValueByTokens($entity, $tokens, $sourceEntityMeta);
	}
public function getValue(IEntity $entity, string $expr): ?ValueReference
	{
		[$tokens, $sourceEntityClassName] = ConditionParserHelper::parsePropertyExpr($expr);
		$sourceEntityMeta = $this->repository->getEntityMetadata($sourceEntityClassName);
		return $this->getValueByTokens($entity, $tokens, $sourceEntityMeta);
	}
public function getValue ( IEntity $ entity , string $ expr ) : ? ValueReference { [ $ tokens , $ sourceEntityClassName ] = ConditionParserHelper :: parsePropertyExpr ( $ expr ) ; $ sourceEntityMeta = $ this -> repository -> getEntityMetadata ( $ sourceEntityClassName ) ; return $ this -> getValueByTokens ( $ entity , $ tokens , $ sourceEntityMeta ) ; }
Returns value reference, returns null when entity should not be evaluated at all because of STI condition.
Returns value reference returns null when entity should not be evaluated at all because of STI condition .