public function initializeEntity($entity, AutoTablesConfiguration $config) {
        $entityDescriptor = $this->fetchEntityDescriptor($config);
        foreach ($entityDescriptor->getColumnDescriptors() as $column) {
            if ($column->getInitializer()) {
                $value = null;
                if ($column->getInitializer()->getValue()) {
                    $value = $column->getInitializer()->getValue();
                } else if ($column->getInitializer()->getRepository()) {
                    $id = $column->getInitializer()->getId();
                    if (!$id) {
                        // search the id in the request
                        $request = $this->requestStack->getCurrentRequest();
                        if ($request) {
                            $id = $request->get('id'.$column->getId());
                        }
                    }
                    Ensure::isNotNull($id, 'Missing id for column [%s] in [%s]', $column->getName(), $config->getId());
                    $repository = $this->doctrine->getRepository($column->getInitializer()->getRepository());
                    Ensure::isNotNull($repository, 'Repository with id [%s] not found for [%s]', $column->getInitializer()->getRepository(), $config->getId());
                    $value = $repository->find($id);
                }
                $this->setValue($entity, $column->getId(), $value, $config);
            }
        }
    }