{"record":{"id":"73c479880287ff6c","repo":"doctrine/orm","slug":"you-do-not-have-any-mapped-doctrine-orm-entities-a","errorCode":null,"errorMessage":"You do not have any mapped Doctrine ORM entities according to the current configuration. If you have entities or mapping files you should check your mapping configuration for errors.","messagePattern":"You do not have any mapped Doctrine ORM entities according to the current configuration\\. If you have entities or mapping files you should check your mapping configuration for errors\\.","errorType":"console","errorClass":"InvalidArgumentException","httpStatus":null,"severity":"error","filePath":"src/Tools/Console/Command/MappingDescribeCommand.php","lineNumber":217,"sourceCode":"                [$this->formatField('Field mappings:', '')],\n                $this->formatMappings($metadata->fieldMappings),\n            ),\n        );\n    }\n\n    /**\n     * Return all mapped entity class names\n     *\n     * @return class-string[]\n     */\n    private function getMappedEntities(EntityManagerInterface $entityManager): array\n    {\n        $entityClassNames = $entityManager->getConfiguration()\n                                          ->getMetadataDriverImpl()\n                                          ->getAllClassNames();\n\n        if (! $entityClassNames) {\n            throw new InvalidArgumentException(\n                'You do not have any mapped Doctrine ORM entities according to the current configuration. ' .\n                'If you have entities or mapping files you should check your mapping configuration for errors.',\n            );\n        }\n\n        return $entityClassNames;\n    }\n\n    /**\n     * Return the class metadata for the given entity\n     * name\n     *\n     * @param string $entityName Full or partial entity name\n     */\n    private function getClassMetadata(\n        string $entityName,\n        EntityManagerInterface $entityManager,\n    ): ClassMetadata {","sourceCodeStart":199,"sourceCodeEnd":235,"githubUrl":"https://github.com/doctrine/orm/blob/d9b9ff73016bf598ae07515f97289ce8074e97a5/src/Tools/Console/Command/MappingDescribeCommand.php#L199-L235","documentation":"Error \"You do not have any mapped Doctrine ORM entities according to the current configuration. If you have entities or mapping files you should check your mapping configuration for errors.\" thrown in doctrine/orm.","triggerScenarios":"Thrown at src/Tools/Console/Command/MappingDescribeCommand.php:217 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"d9b9ff73016bf598ae07515f97289ce8074e97a5","analyzedAt":"2026-08-21T06:13:15.863Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}