Skip to content

Commit bd59fe6

Browse files
committed
Update changelog for 1.0.0-BETA10
1 parent 5e71458 commit bd59fe6

File tree

1 file changed

+47
-2
lines changed

1 file changed

+47
-2
lines changed

CHANGELOG-1.0.md

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,51 @@ To generate a changelog summary since the last version, run
1515
1.0.x-dev
1616
---------
1717

18+
1.0.0-BETA10 (2014-05-05)
19+
-------------------------
20+
21+
All issues and pull requests in this release may be found under the
22+
[1.0.0-BETA10 milestone](https://github.com/doctrine/mongodb-odm/issues?milestone=2&state=closed).
23+
24+
### Improved support for differentiating identifier types and non-scalar values
25+
26+
ODM previously required that documents use scalar identifier values. Also, the
27+
identity map, which UnitOfWork uses to track managed documents, was unable to
28+
differentiate between numeric strings and actual numeric types. After internal
29+
refactoring in [#444](https://github.com/doctrine/mongodb-odm/pull/444), it
30+
should now be possible to use complex types such as MongoBinData and associative
31+
arrays (i.e. `hash` type) and the identity map should no longer confuse strings
32+
and numeric types. Embedded documents and references are still not supported as
33+
identifier values.
34+
35+
### Classes not listed in discriminator maps
36+
37+
When a discriminator map is used, ODM will store the object's short key instead
38+
of its FQCN in the discriminator field. Previously, ODM might leave that field
39+
blank when dealing with a class that was not defined in the map. ODM will now
40+
fall back to storing the FQCN in this case. This primarily affects embedded
41+
documents and references.
42+
43+
### Criteria API
44+
45+
The base DocumentRepository class now implements the Selectable interface from
46+
the Criteria API in Doctrine Collections 1.1. This brings some consistency with
47+
ORM; however, ODM's PersistentCollection class does not yet support Selectable.
48+
This functionality was introduced in
49+
[#699](https://github.com/doctrine/mongodb-odm/pull/699).
50+
51+
#### Read preferences and Cursor refactoring
52+
53+
ODM's Cursor class was refactored to compose the Doctrine MongoDB Cursor. It
54+
still extends the base class for backwards compatibility, but methods are now
55+
proxied rather than simply overridden. This solved a few bugs where the cursor
56+
states might become inconsistent.
57+
58+
With this refactoring, ODM now has proper support for read preferences in its
59+
query builder and the UnitOfWork hints, which previously only supported the
60+
deprecated `slaveOkay` option. Much of this work was implemented in
61+
[#565](https://github.com/doctrine/mongodb-odm/pull/565).
62+
1863
#### DocumentRepository findAll() and findBy()
1964

2065
The `findAll()` and `findBy()` methods in DocumentRepository previously returned
@@ -24,7 +69,7 @@ numerically indexed array. The change also affects the magic repository methods,
2469
which utilize `findBy()` internally. If users require a Cursor, they should
2570
utilize the query builder or a custom repository method.
2671

27-
#### Lifecycle Callbacks and AlsoLoad
72+
#### Lifecycle callbacks and AlsoLoad
2873

2974
The `@HasLifecycleCallbacks` class annotation is now required for lifecycle
3075
annotations on methods *declared within that class* to be registered. If a
@@ -46,7 +91,7 @@ BinDataType's previous subtype, `2`, is available via the BinDataByteArrayType
4691
class (type `bin_bytearray`); however, users should note that subtype `2` is
4792
deprecated in the [BSON specification](http://bsonspec.org/#/specification).
4893

49-
#### Priming References
94+
#### Priming references
5095

5196
`Builder::prime()` now allows any callable to be registered, where previously
5297
only Closures were supported. The method will throw an InvalidArgumentException

0 commit comments

Comments
 (0)