private function addConfigFields(ClassMetadata $metadata, $className)
    {
        foreach ($metadata->getFieldNames() as $field) {
            if (!$metadata->isIdentifier($field)) {
                $this->configs[$className][0][$field] = $metadata->getTypeOfField($field);
            }
        }
    }