mongodb-odm icon indicating copy to clipboard operation
mongodb-odm copied to clipboard

Validate unique field names

Open Bilge opened this issue 8 years ago • 0 comments

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.

Bilge avatar Feb 01 '17 15:02 Bilge