public function getConfigs($className)
    {
        if (\is_object($className)) {
            $className = ClassUtils::getClass($className);
        }

        if (!array_key_exists($className, $this->configs)) {
            $this->configs[$className] = [[], []];
            $meta = $this->om->getClassMetadata($className);
            $this->addConfigFields($meta, $className);
            $this->addConfigAssociations($meta, $className);
        }

        return $this->configs[$className];
    }