pomm-project / ModelManager

Model Manager for the Pomm database framework.
MIT License
66 stars 27 forks source link

Quote schema name when is reservedKeyword during StructureGenerator #54

Closed Pierozi closed 9 years ago

Pierozi commented 9 years ago

Fix AutoStructure relation name when we tried to build AutoStructure with schema named with reserved keyword.

stood commented 9 years ago

It's really the last solution ?

chanmix51 commented 9 years ago

Because entity converter is confused by the presence of quotes, this breaks the nested entity for all the schema’s entities. This is a limitation of Pomm 2.0.

Pierozi commented 9 years ago

in this case, maybe we could put a warning during AutoStructure generation. if a schema use reserved keyword for name. let user know is bad idea and can meet lot of compatiblies issues.