Skip to content

Commit 49acb20

Browse files
committed
minor #15421 [Doctrine] add missing mapping type (PHP Attributes) (xthiago)
This PR was merged into the 5.3 branch. Discussion ---------- [Doctrine] add missing mapping type (PHP Attributes) <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `5.x` for features of unreleased versions). --> Support for [Doctrine ORM 2.9 AttributeDrive was added a time ago](doctrine/DoctrineBundle#1322), but the docs does not mention that possibility yet. ```yaml doctrine: orm: mappings: Your\Namespace: type: attribute # <-- HERE dir: '%kernel.project_dir%/src/Your/Namespace' prefix: 'Your\Namespace' alias: YN ``` Commits ------- 8069208 add missing mapping type (PHP Attributes)
2 parents 6c9387c + 8069208 commit 49acb20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/configuration/doctrine.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ you can control. The following configuration options exist for a mapping:
265265
``type``
266266
........
267267

268-
One of ``annotation`` (the default value), ``xml``, ``yml``, ``php`` or
268+
One of ``annotation`` (the default value), ``attribute``, ``xml``, ``yml``, ``php`` or
269269
``staticphp``. This specifies which type of metadata type your mapping uses.
270270

271271
``dir``

0 commit comments

Comments
 (0)