public
static
|
defer(
SyncProviderInterface $provider,
?SyncContextInterface $context,
string $entity,
string $forEntity,
string $forEntityProperty,
$forEntityId,
?array $filter = null,
&$replace = null,
?Closure $callback = null,
): void
Defer retrieval of a sync entity relationship
Defer retrieval of a sync entity relationship
Parameters
$provider |
The provider servicing the entity.
|
$context |
The context within which the
provider is servicing the entity.
|
$entity |
The entity to instantiate.
|
$forEntity |
The entity for which
the relationship is deferred.
|
$forEntityProperty |
The entity property for which the
relationship is deferred.
|
$forEntityId |
The identifier of the entity for which the
relationship is deferred.
|
$filter |
Overrides the default filter
passed to the provider when requesting entities.
|
$replace |
Refers to the variable or property
to replace when the relationship is resolved.
|
$callback |
If given, $replace is
ignored and the resolved entities are passed to the callback.
|
Implements
|
#
|
public
|
getContext(): ?SyncContextInterface
Get the context within which the provider is servicing the entity
Get the context within which the provider is servicing the entity
Implements
|
#
|