Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sub documents, validation, and general handling #7

Open
greggunner opened this issue Jul 26, 2011 · 1 comment
Open

Sub documents, validation, and general handling #7

greggunner opened this issue Jul 26, 2011 · 1 comment

Comments

@greggunner
Copy link

Hi ichikaway,

What are the plans for the mongodb source to handle documents with sub documents?

In particular, validation is assuming flat arrays of fields which is correct for traditional relational db's. It would be great to have validation handle document model types.

Unless this is a Cake 2 item.

Greg.

P.S. I wasn't sure where to place this question as it is more a discussion point and not an issue. My apologize for this if incorrect. Perhaps there is a better place for this dialogue? I was thinking CakePHP on Google groups, but last time I didn't get much response about a mongo db question.

@rhythmicdevil
Copy link

I am curious about this as well. I am trying to use validate to enforce a unique field. If I attempt to save a duplicated the DB returns an error as it should but the driver does nothing. I would expect that it puts the error into a structure in the Model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants