This repository was archived by the owner on Sep 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +49
-0
lines changed Expand file tree Collapse file tree 2 files changed +49
-0
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,7 @@ configuration in the ``sonata_admin`` section of your project configuration:
132
132
cmf_core.admin_extension.child :
133
133
implements :
134
134
- Symfony\Cmf\Bundle\CoreBundle\Model\ChildInterface
135
+ - Doctrine\ODM\PHPCR\HierarchyInterface
135
136
136
137
.. code-block :: xml
137
138
@@ -142,6 +143,7 @@ configuration in the ``sonata_admin`` section of your project configuration:
142
143
<!-- ... -->
143
144
<extension id =" cmf_core.admin_extension.child" >
144
145
<implement >Symfony\Cmf\Bundle\CoreBundle\Model\ChildInterface</implement >
146
+ <implement >Doctrine\ODM\PHPCR\HierarchyInterface</implement >
145
147
</extension >
146
148
</config >
147
149
@@ -156,6 +158,7 @@ configuration in the ``sonata_admin`` section of your project configuration:
156
158
'cmf_core.admin_extension.child' => array(
157
159
'implements' => array(
158
160
'Symfony\Cmf\Bundle\CoreBundle\Model\ChildInterface',
161
+ 'Doctrine\ODM\PHPCR\HierarchyInterface',
159
162
),
160
163
),
161
164
),
Original file line number Diff line number Diff line change @@ -68,6 +68,52 @@ is the following configuration:
68
68
),
69
69
));
70
70
71
+ orm
72
+ ...
73
+
74
+ This defines the persistence driver. The default configuration of persistence
75
+ is the following configuration:
76
+
77
+ .. configuration-block ::
78
+
79
+ .. code-block :: yaml
80
+
81
+ cmf_core :
82
+ persistence :
83
+ orm :
84
+ enabled : false
85
+ manager_name : ~
86
+ use_sonata_admin : auto
87
+
88
+ .. code-block :: xml
89
+
90
+ <?xml version =" 1.0" charset =" UTF-8" ?>
91
+ <container xmlns =" http://symfony.com/schema/dic/services" >
92
+
93
+ <config xmlns =" http://cmf.symfony.com/schema/dic/core" >
94
+ <persistence >
95
+ <phpcr
96
+ enabled =" false"
97
+ manager-name =" null"
98
+ use-sonata-admin =" auto"
99
+ />
100
+ </persistence >
101
+ </config >
102
+
103
+ </container >
104
+
105
+ .. code-block :: php
106
+
107
+ $container->loadFromExtension('cmf_core', array(
108
+ 'persistence' => array(
109
+ 'phpcr' => array(
110
+ 'enabled' => false,
111
+ 'manager_name' => null,
112
+ 'use_sonata_admin' => 'auto',
113
+ ),
114
+ ),
115
+ ));
116
+
71
117
enabled
72
118
"""""""
73
119
You can’t perform that action at this time.
0 commit comments