Schema validation migration like #3225
-
MongoDB has built in schema validations. @alcaeus Is it something the the maintainers would like to have?? Are you open to a PR at this subject? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The schema validation in MongoDB is optional. I understand that you'd like to use the same schema methods as for a SQL database to define fields and impose their name and type. Currently this is effectively ignored. What you want:
To create the collection like this:
|
Beta Was this translation helpful? Give feedback.
We have an open ticket for this feature request: PHPORM-72