Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit c00addf

Browse files
committed
Merge pull request #740 from symfony-cmf/issue-698
Document new data_class setting
2 parents 4cb9bec + 230034b commit c00addf

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

bundles/seo/configuration.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,3 +241,23 @@ of ``cmf_core.persistence.phpcr.use_sonata_admin``.
241241

242242
The name of the form group of the group provided by the Sonata Admin
243243
Extension.
244+
245+
``form``
246+
~~~~~~~~
247+
248+
``data_class``
249+
"""""""""""""""
250+
251+
``seo_metadata``
252+
****************
253+
254+
.. versionadded:: 1.2
255+
The ``seo_metadata`` setting was introduced in version 1.2.
256+
257+
**type**: ``string`` **default**: ``Symfony\Cmf\Bundle\SeoBundle\Model\SeoMetadata``
258+
259+
Configures the class to use when creating new ``SeoMetadata`` objects using the
260+
:ref:`SeoMetadata form type <bundles-seo-metadata-form-type>`.
261+
262+
When the `phpcr`_ persistence layer is enabled, this defaults to
263+
``Symfony\Cmf\Bundle\SeoBundle\Doctrine\Phpcr\SeoMetadata``.

bundles/seo/seo_aware.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ do this, you have to enable ORM support just like you enabled PHPCR enabled
235235
above and add a OneToOne or ManyToOne relation between the content entity and
236236
the ``SeoMetadata`` entity.
237237

238+
.. _bundles-seo-metadata-form-type:
239+
238240
Form Type
239241
---------
240242

@@ -243,8 +245,8 @@ form type can be used in forms to edit the ``SeoMetadata`` object.
243245

244246
.. caution::
245247

246-
The bundle requires the `BurgovKeyValueFormBundle`_ when using the form
247-
type. Make sure you install and enable it.
248+
The form type requires the `BurgovKeyValueFormBundle`_ to be installed and
249+
registered.
248250

249251
Sonata Admin Integration
250252
------------------------

0 commit comments

Comments
 (0)