private function fetchChildrenResources(array &$data, Context $context)
    {
        $resourceName = $this->config->getResourceName();
        //$resourceNamePlural = $this->config->getResourceName(true);

        $resource = $context->getResource($resourceName);

        $childrenConfigurations = $this->get('ekyna_admin.pool_registry')->getChildren($this->config);
        foreach ($childrenConfigurations as $childConfig) {
            $childResourceName = $childConfig->getResourceName(true);
            if (!array_key_exists($childResourceName, $data)) {

                $customizeQb = null;

                /** @var \Doctrine\ORM\Mapping\ClassMetadataInfo $metadata */
                $metadata = $this->get($childConfig->getServiceKey('metadata'));

                // Look for many to one
                if ($metadata->hasAssociation($resourceName)) {
                    $mapping = $metadata->getAssociationMapping($resourceName);
                    if ($mapping['type'] === ClassMetadataInfo::MANY_TO_ONE) {
                        $customizeQb = function (QueryBuilder $qb, $alias) use ($resourceName, $resource) {
                            $qb
                                ->andWhere(sprintf($alias . '.%s = :resource', $resourceName))
                                ->setParameter('resource', $resource);
                        };
                    } else {
                        throw new \RuntimeException(sprintf('"%s" is not a supported association type.', $childResourceName));
                    }
                // Look for many to many
                } /*elseif ($metadata->hasAssociation($resourceNamePlural)) {
                    $mapping = $metadata->getAssociationMapping($resourceNamePlural);
                    if ($mapping['type'] === ClassMetadataInfo::MANY_TO_MANY) {
                        $customizeQb = function (QueryBuilder $qb, $alias) use ($resourceNamePlural, $resource) {
                            $qb
                                ->join($alias.'.'.$resourceNamePlural, 'parent')
                                ->where('parent.id = :resource')
                                ->setParameter('resource', $resource);
                        };
                    } else {
                        throw new \RuntimeException(sprintf('"%s" is not a supported association type.', $childResourceName));
                    }
                }*/ else {
                    throw new \RuntimeException(sprintf('Association "%s" not found.', $childResourceName));
                }

                $table = $this->getTableFactory()
                    ->createBuilder($childConfig->getTableType(), [
                        'name' => $childConfig->getId(),
                        'customize_qb' => $customizeQb,
                    ])
                    ->getTable($context->getRequest());

                //$table->getConfig()->setCustomizeQb($customizeQb);

                $data[$childResourceName] = $table->createView();
            }
        }
    }