return $criteria;
} protected function resolveEntityValues(EntityResolverContext
$resolverContext, string
$content): ?string
{ // https://regex101.com/r/idIfbk/1
$content =
preg_replace_callback( '/{{\s*(?<property>[\w.\d]+)\s*}}/',
function D
$matches) use ($resolverContext) { try { return $this->
resolveEntityValueToString($resolverContext->
getEntity(),
$matches['property'
],
$resolverContext);
} catch (\InvalidArgumentException
) { return $matches[0
];
} },
$content );
return $content;
} private function getKeyByManyToMany(ManyToManyAssociationField
$field): ?string
{