File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,34 @@ Changelog
8
8
* ` DataFixtures/LoadCmsData ` renamed and moved to DataFixtures/Phpcr
9
9
* PHPCR documents moved from Document to Doctrine/Phpcr
10
10
11
+ Migration instructions:
12
+
13
+ 1 . Set "addLocalePattern" flag to existing MultilangPage documents:
14
+
15
+ ```` bash
16
+ ./app/console doctrine:phpcr:nodes:update --query=" SELECT * FROM [nt:unstructured] WHERE phpcr:class = \" Symfony\\ Cmf\\ Bundle\\ SimpleCmsBundle\\ Document\\ MultilangPage\" " --apply-closure=" \$ node->setProperty('addLocalePattern', true);"
17
+ ````
18
+
19
+ 2 . Rename classes:
20
+
21
+ ```` bash
22
+ export CMFNS=" Symfony\\ Cmf\\ Bundle\\ SimpleCmsBundle"
23
+ ./app/console doctrine:phpcr:document:reclass \
24
+ $CMFNS " \\ Document\\ MultilangPage" \
25
+ $CMFNS " \\ Doctrine\\ Phpcr\\ Page"
26
+ ./app/console doctrine:phpcr:document:reclass \
27
+ $CMFNS " \\ Document\\ MultilangRedirectRoute" \
28
+ $CMFNS " \\ Doctrine\\ Phpcr\\ MultilangRedirectRoute"
29
+ ./app/console doctrine:phpcr:document:reclass \
30
+ $CMFNS " \\ Document\\ MultilangRoute" \
31
+ $CMFNS " \\ Doctrine\\ Phpcr\\ MultilangRoute"
32
+ ./app/console doctrine:phpcr:document:reclass \
33
+ $CMFNS " \\ Document\\ MultilangRouteProvider" \
34
+ $CMFNS " \\ Doctrine\\ Phpcr\\ MultilangRouteProvider"
35
+ ./app/console doctrine:phpcr:document:reclass \
36
+ $CMFNS " \\ Document\\ Page" \
37
+ $CMFNS " \\ Doctrine\\ Phpcr\\ Page"
38
+
11
39
* ** 2013-08-04** : Changed name of Sonata route names / patterns - now /admin/cmf/simplecms/foo instead of /admin/bundle/simplecms/foo
12
40
13
41
1.0.0-beta3
You can’t perform that action at this time.
0 commit comments