if (isset($payload['associations'
])) { foreach ($payload['associations'
] as $propertyName =>
$association) { if (!\
is_array($association)) { continue;
} $field =
$definition->
getFields()->
get($propertyName);
if (!
$field instanceof AssociationField
) { throw new AssociationNotFoundException((string) $propertyName);
} $ref =
$field->
getReferenceDefinition();
if ($field instanceof ManyToManyAssociationField
) { $ref =
$field->
getToManyReferenceDefinition();
} $nested =
$criteria->
getAssociation($propertyName);
$this->
parse($association,
$nested,
$ref,
$context, null
);