Skip to content

Commit a3ac4dd

Browse files
authored
Update configuration.rst
Entities in the bundle have both annotations and attributes. When annotation is set in config, this error is thrown In AbstractDoctrineExtension.php line 229: Can only configure "xml", "yml", "php", "staticphp" or "attribute" through the DoctrineBundle. Use your own bundle to configure other metadata drivers . You can register them by adding a new driver to the "doctrine.orm.default _metadata_driver" service definition.
1 parent 9abab41 commit a3ac4dd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/configuration.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,25 @@ to register their mapping in Doctrine when you want to use them.
1717
default:
1818
mappings:
1919
gedmo_translatable:
20-
type: annotation
20+
type: attribute
2121
prefix: Gedmo\Translatable\Entity
2222
dir: "%kernel.project_dir%/vendor/gedmo/doctrine-extensions/src/Translatable/Entity"
2323
alias: GedmoTranslatable # (optional) it will default to the name set for the mapping
2424
is_bundle: false
2525
gedmo_translator:
26-
type: annotation
26+
type: attribute
2727
prefix: Gedmo\Translator\Entity
2828
dir: "%kernel.project_dir%/vendor/gedmo/doctrine-extensions/src/Translator/Entity"
2929
alias: GedmoTranslator # (optional) it will default to the name set for the mapping
3030
is_bundle: false
3131
gedmo_loggable:
32-
type: annotation
32+
type: attribute
3333
prefix: Gedmo\Loggable\Entity
3434
dir: "%kernel.project_dir%/vendor/gedmo/doctrine-extensions/src/Loggable/Entity"
3535
alias: GedmoLoggable # (optional) it will default to the name set for the mapping
3636
is_bundle: false
3737
gedmo_tree:
38-
type: annotation
38+
type: attribute
3939
prefix: Gedmo\Tree\Entity
4040
dir: "%kernel.project_dir%/vendor/gedmo/doctrine-extensions/src/Tree/Entity"
4141
alias: GedmoTree # (optional) it will default to the name set for the mapping

0 commit comments

Comments
 (0)