if ($parentAssociation !== null
&&
$field instanceof StorageAware
&&
$field->
is(Inherited::
class) &&
$context->
considerInheritance() ) { $parentAlias =
$root . '.' .
$parentAssociation->
getPropertyName();
// contains the field accessor for the child value (eg. `product.name`.`name`)
$childAccessor = EntityDefinitionQueryHelper::
escape($root) . '.'
. EntityDefinitionQueryHelper::
escape($field->
getStorageName());
// contains the field accessor for the parent value (eg. `product.parent`.`name`)
$parentAccessor = EntityDefinitionQueryHelper::
escape($parentAlias) . '.'
. EntityDefinitionQueryHelper::
escape($field->
getStorageName());
// contains the alias for the resolved field (eg. `product.name`)
$fieldAlias = EntityDefinitionQueryHelper::
escape($root . '.' .
$field->
getPropertyName());
if ($field instanceof JsonField
) { // merged in hydrator
$parentFieldAlias = EntityDefinitionQueryHelper::
escape($root . '.' .
$field->
getPropertyName() . '.inherited'
);