mongodb-odm
mongodb-odm copied to clipboard
Validate unique field names
The schema validator seems like a cool new feature, but it could be more useful if it validates that field names do not conflict (are unique). This can't occur when names are inferred from PHP field names since PHP guarantees field names are unique for a given class, but when making use of the name
attribute it is possible to have unexpected collisions, which ODM currently ignores.