Skip to content

Conversation

@YOMorales
Copy link
Contributor

Here are the changes done:

  1. Transforming a Model's $order attribute from a string to an array, so that it gets set (addresses the issue brought here: https://github.com/ichikaway/cakephp-mongodb/issues/20).
  2. Adds the ability to set update operators (using mongoNoSetOperator) on findAndModify queries (i.e. 'De-hardcodes' the '$set' parameter).
  3. Makes the 'created' and 'modified' keys optional: if $mongoSchema is defined without these keys, they won't be added.
    (Sometimes one doesn't need these keys and wishes to eliminate them to improve performance a bit, but the MongoDB Datasource kept adding them no matter what).

@d1rk
Copy link

d1rk commented Nov 7, 2011

Very nice work - would love to see that pulled. Give it a go, ichi.

@ichikaway
Copy link
Owner

Thanks.

(1)
I made the patch for issue #20.
f0d296b

(2)
merge your patch :)

(3)
It's better to merge _id key of default schema into mongoSchema property.
b63d131
My patch filters created and modified keys.

@ichikaway ichikaway closed this Nov 27, 2011
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

Successfully merging this pull request may close these issues.

3 participants