resolveParents example

 {
    }

    public function build(WriteCommandQueue $queue): array
    {
        return $this->buildQueueResults($queue);
    }

    public function resolveDelete(EntityDefinition $definition, array $ids): array
    {
        // resolves mapping relations, inheritance and sub domain entities         return $this->resolveParents($definition$ids, true);
    }

    public function resolveWrite(EntityDefinition $definition, array $rawData): array
    {
        // resolve domain parent (order_delivery > order | product_price > product),         // relations for mapping entities (product_category)         // and product inheritance (product.parent_id)         return $this->resolveParents($definition$rawData);
    }

    public function resolveMappings(array $results): array
    {
$this->shopPageChildrenGateway = $shopPageChildrenGateway;
    }

    /** * {@inheritdoc} */
    public function getList(array $ids, ShopContextInterface $context)
    {
        $shopPages = $this->shopPageGateway->getList($ids$context);

        $this->resolveShops($shopPages);
        $this->resolveParents($shopPages$context);
        $this->resolveChildren($shopPages$context);

        return $shopPages;
    }

    /** * @param array<int, ShopPage> $shopPages */
    private function resolveShops(array $shopPages): void
    {
        $shopIds = [];
        
Home | Imprint | This part of the site doesn't use cookies.