You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
I ran the generate command to generate ODM documents from a schema configuration that had two types one of them has a reference to the other one. After the documents got generated I tried to go to API Platform's API documentation and saw this error:
"Class "PostalAddress" does not exist".
How to reproduce
In an API Platform project that supports MongoDB add this configuration file:
Possible Solution
The method getRelationName in class ApiPlatform\SchemaGenerator\AttributeGenerator\DoctrineMongoDBAttributeGenerator can have the logic to add the namespace of the reference class. currently, it returns only the name of the class. Something like the same method in class ApiPlatform\SchemaGenerator\AttributeGenerator\DoctrineOrmAttributeGenerator
The text was updated successfully, but these errors were encountered:
API Platform version(s) affected: 3.1.10
Description
I ran the generate command to generate ODM documents from a schema configuration that had two types one of them has a reference to the other one. After the documents got generated I tried to go to API Platform's API documentation and saw this error:
"Class "PostalAddress" does not exist".
How to reproduce
In an API Platform project that supports MongoDB add this configuration file:
and then run this command:
Possible Solution
The method
getRelationName
in classApiPlatform\SchemaGenerator\AttributeGenerator\DoctrineMongoDBAttributeGenerator
can have the logic to add the namespace of the reference class. currently, it returns only the name of the class. Something like the same method in classApiPlatform\SchemaGenerator\AttributeGenerator\DoctrineOrmAttributeGenerator
The text was updated successfully, but these errors were encountered: