Add missing UpdateCommand in console documentation
Fix CLI sandbox command DM helper and QueryCommand
Previously, the array of results was dumped, so the effective depth was reduced by one. Dumping the result documents themselves with the specified depth seems more intuitive.
Since #752, the repository find methods return arrays instead of cursors in order to be consistent with the common repository interface. With this change, a query builder is used, and the skip/limit/hydrate options can be applied to the builder directly.
Application::add() calls Command::setApplication(), which in turn assigns the Application's current HelperSet to the Command. Therefore, we need to set the HelperSet before registering any Commands. This fixes a bug that was introduced in a49d20d.
Use replacement document for upserts with no modifiers (#741)
Do not pass obsolete $cmd argument to PersistentCollection ctor
This should have been removed in 338cf06.
…tory Support repositoryClass on MappedSuperclass
Fix PreLoadEventArgsTest for PHP 5.3
Hydrator not acception DateTime objects on @ODM\Date fields
Use null default value for ClassMetadataInfo slaveOkay
ClassMetadataFactoryTest and SchemaManagerTest required refactoring for these changes.
[DocumentRepository] Use Cursor::toArray() instead of iterator_to_array()
Differentiate between ID types
Previously, BinDataType used MongoBinData::BYTE_ARRAY. That subtype, 2, is deprecated in the BSON specification. Use 0, the new default, for BinDataType and create BinDataByteArrayType for users that prefer the old subtype. See: https://jira.mongodb.org/browse/PHP-407
This leaves a todo item for registerManaged(). As-is, this test failed because registering a document with an identifier not valid for its mapping would lead to an inconsistency in the UnitOfWork maps. The CmsUser document's identifier uses IdType, so we should use a MongoId (or compatible string) here.
If the identifier is not available, the SPL object hash is used. Previously, it was always used for embedded documents.