Bot releases are visible (Hide)
Published by Sammaye over 10 years ago
THERE IS A BREAKING CHANGE IN THIS RELEASE, PLEASE READ BELOW BEFORE UPDATING IF YOU ARE USING OLD CODE.
Breaking Change:
Added:
Published by Sammaye over 10 years ago
Added:
Fixed:
Published by Sammaye over 10 years ago
I know I said the next release was going to the relation caching but a fault on my part, when reading time on GitHub, means this is not the case. Instead I will do that release in another month.
Added:
findAllByAttributes()
to match Yii AR coding.Published by Sammaye over 10 years ago
This is the last release before the fixing of: https://github.com/Sammaye/MongoYii/issues/169 whereby relations will by default load eagerly and be cached in arrays within the models. The next release, featuring this fix, will be pushed to a 5.0 tag as it will be a breaking change.
PLEASE ENSURE YOU HAVE ACCOUNTED FOR THIS CHANGE IN YOUR CODE.
Fixed:
Published by Sammaye over 10 years ago
Documentation:
Published by Sammaye over 10 years ago
Fixed:
boolean
type being used in compare()
function in EMongoCriteria
Published by Sammaye over 10 years ago
Changed:
__get
returns exceptions. It will now return exceptions under certain cases when child function return exceptions of their own. This does not effect the schemaless nature of MongoYii however it does mean that exceptions might be thrown where they were not before. Since this is not backwards compatible with previous functionality this release has been pushed to a new major, however, it is not really that major a change.Published by Sammaye over 10 years ago
Fixed:
Added:
EMongoPagination
classPublished by Sammaye over 10 years ago
Added:
Published by Sammaye over 10 years ago
Added:
strict
parameter for the EMongoSubdocumentValidator
to allow it to not care about model rules when returning fields.Published by Sammaye almost 11 years ago
Added:
ensureIndexes()
to make life a little easier for development.Published by Sammaye almost 11 years ago
Fixed:
ESubdocumentValidator
Published by Sammaye almost 11 years ago
Fixed:
findOne
CFilterValidator
not working on subdocumentsPublished by Sammaye almost 11 years ago
Fixed:
tests
folder correctly.Published by Sammaye almost 11 years ago
Fixed:
Published by Sammaye almost 11 years ago
Fixed:
getError()
returning array()
instead of null
on no error.$where
on call of getRelated()
Published by Sammaye almost 11 years ago
Fixed:
MongoId
being treated wrongly in EMongoCriteria
compare()
Published by Sammaye almost 11 years ago
Breaking Change:
collectionName()
to return get_class($this)
as it does in Yii currently. This is normally of no consequence and would normally be a backward compatible change except some people may wonder why they no longer get empty collection errors when they don't define a collection name.Fixed:
boolean
fix for search
in EMongoDocument
EMongoClient
Published by Sammaye almost 11 years ago
Fixed:
getPrimaryKey()
run for inserts as wellPublished by Sammaye almost 11 years ago
upsert
for certain operations: https://github.com/Sammaye/MongoYii/pull/160