Skip to content

Commit f9d26e2

Browse files
committed
Merge pull request #1101 from doctrine/beta13-changelog
Update changelog for 1.0.0-BETA13
2 parents 413c5bf + 7c44cd6 commit f9d26e2

File tree

1 file changed

+75
-3
lines changed

1 file changed

+75
-3
lines changed

CHANGELOG-1.0.md

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

18+
1.0.0-BETA13 (2015-05-21)
19+
-------------------------
20+
21+
All issues and pull requests in this release may be found under the
22+
[1.0.0-BETA13 milestone](https://github.com/doctrine/mongodb-odm/issues?q=milestone%3A1.0.0-BETA13).
23+
24+
#### `atomicSet` and `atomicSetArray` strategies for top-level collections
25+
26+
[#1096](https://github.com/doctrine/mongodb-odm/pull/1096) introduces two new
27+
collection update strategies, `atomicSet` and `atomicSetArray`. Unlike existing
28+
strategies (e.g. `pushAll` and `set`), which update collections in a separate
29+
query after the parent document, the atomic strategy ensures that the collection
30+
and its parent are updated in the same query. Any nested collections (within
31+
embedded documents) will also be included in the atomic update, irrespective of
32+
their update strategies.
33+
34+
Currently, atomic strategies may only be specified for collections mapped
35+
directly in a document class (i.e. not collections within embedded documents).
36+
This strategy may be especially useful for highly concurrent applications and/or
37+
versioned document classes (see: [#1094](https://github.com/doctrine/mongodb-odm/pull/1094)).
38+
39+
#### Reference priming improvements
40+
41+
[#1068](https://github.com/doctrine/mongodb-odm/pull/1068) moves the handling of
42+
primed references to the Cursor object, which allows ODM to take the skip and
43+
limit options into account and avoid priming more references than are necessary.
44+
45+
[#970](https://github.com/doctrine/mongodb-odm/pull/970) now allows references
46+
within embedded documents to be primed by fixing a previous parsing limitation
47+
with dot syntax in field names.
48+
49+
#### New `defaultDiscriminatorValue` mapping
50+
51+
[#1072](https://github.com/doctrine/mongodb-odm/pull/1072) introduces a
52+
`defaultDiscriminatorValue` mapping, which may be used to specify a default
53+
discriminator value if a document or association has no discriminator set.
54+
55+
#### New `Integer` and `Bool` annotation aliases
56+
57+
[#1073](https://github.com/doctrine/mongodb-odm/pull/1073) introduces `Integer`
58+
and `Bool` annotations, which are aliases of `Int` and `Boolean`, respectively.
59+
60+
#### Add millisecond precision to DateType
61+
62+
[#1063](https://github.com/doctrine/mongodb-odm/pull/1063) adds millisecond
63+
precision to ODM's DateType class (note: although PHP supports microsecond
64+
precision, dates in MongoDB are limited to millisecond precision). This should
65+
now allow ODM to roundtrip dates from the database without a loss of precision.
66+
67+
#### New Hydrator generation modes
68+
69+
Previously, the `autoGenerateHydratorClasses` ODM configuration option was a
70+
boolean denoting whether to always or never create Hydrator classes. As of
71+
[#953](https://github.com/doctrine/mongodb-odm/pull/953), this option now
72+
supports four modes:
73+
74+
* `AUTOGENERATE_NEVER = 0` (same as `false`)
75+
* `AUTOGENERATE_ALWAYS = 1` (same as `true`)
76+
* `AUTOGENERATE_FILE_NOT_EXISTS = 2`
77+
* `AUTOGENERATE_EVAL = 3`
78+
79+
### Support for custom DocumentRepository factory
80+
81+
[#892](https://github.com/doctrine/mongodb-odm/pull/892) allows users to define
82+
a custom repository class via the `defaultRepositoryClassName` configuration
83+
option. Alternatively, a custom factory class may also be configured, which
84+
allows users complete control over how repository classes are instantiated.
85+
86+
Custom repository and factory classes must implement
87+
`Doctrine\Common\Persistence\ObjectRepository` and
88+
`Doctrine\ODM\MongoDB\Repository\RepositoryFactory`, respectively.
89+
1890
1.0.0-BETA12 (2015-02-24)
1991
-------------------------
2092

2193
All issues and pull requests in this release may be found under the
22-
[1.0.0-BETA12 milestone](https://github.com/doctrine/mongodb-odm/issues?milestone=6&q=is%3Aclosed).
94+
[1.0.0-BETA12 milestone](https://github.com/doctrine/mongodb-odm/issues?q=milestone%3A1.0.0-BETA12).
2395

2496
#### Allow filter parameters to be specified in Configuration
2597

@@ -55,7 +127,7 @@ later error at runtime.
55127
-------------------------
56128

57129
All issues and pull requests in this release may be found under the
58-
[1.0.0-BETA11 milestone](https://github.com/doctrine/mongodb-odm/issues?milestone=5&state=closed).
130+
[1.0.0-BETA11 milestone](https://github.com/doctrine/mongodb-odm/issues?q=milestone%3A1.0.0-BETA11).
59131

60132
#### Ensure cascade mapping option is always set
61133

@@ -77,7 +149,7 @@ This change was implemented in
77149
-------------------------
78150

79151
All issues and pull requests in this release may be found under the
80-
[1.0.0-BETA10 milestone](https://github.com/doctrine/mongodb-odm/issues?milestone=2&state=closed).
152+
[1.0.0-BETA10 milestone](https://github.com/doctrine/mongodb-odm/issues?q=milestone%3A1.0.0-BETA10).
81153

82154
#### ResolveTargetDocumentListener
83155

0 commit comments

Comments
 (0)