-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from symfony-cmf/adjust-page-document
have additionalInfoBlock and remove createDate from page
- Loading branch information
Showing
7 changed files
with
61 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
UPGRADE FROM 1.0 TO 1.1 | ||
======================= | ||
|
||
Removed all custom routing service as RoutingBundle is now flexible enough. | ||
* Move all routing configuration from cmf_simple_cms to cmf_routing.dynamic | ||
* The configuration for locales is not needed anymore. Configuring it on the | ||
cmf_routing is enough. | ||
* The options for the format pattern, trailing slash and locale pattern are | ||
now moved into the route "options" and the Page Document now takes an | ||
array of options in the constructor instead of boolean flags. | ||
|
||
The Page document has no `createDate` field anymore. Use the publishStartDate | ||
for this purpose. If you where using the createDate and want to keep that | ||
information, you can move it to the publishStartDate with the following query: | ||
|
||
$ php app/console doctrine:phpcr:nodes:update \ | ||
--query="SELECT * FROM [nt:unstructured] WHERE [phpcr:class] = \"Symfony\\Cmf\\Bundle\\SimpleCmsBundle\\Doctrine\\Phpcr\\Page\"" \ | ||
--apply-closure="if (!\$node->getPublishStartDate()) \$node->setProperty('publishStartDate', \$node->getPropertyValue('createDate'));" |