Skip to content

Commit

Permalink
Update index.md
Browse files Browse the repository at this point in the history
Fix ambiguous choices
  • Loading branch information
fabienVernieres authored Jan 8, 2025
1 parent af10348 commit 9933fcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion symfony/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ bin/console make:entity --api-resource
```

Doctrine's [attributes](https://www.doctrine-project.org/projects/doctrine-orm/en/current/reference/attributes-reference.html) map these entities to tables in the database.
Mapping through [attributes](https://www.doctrine-project.org/projects/doctrine-orm/en/current/reference/attributes-reference.html) is also supported, if you prefer those.
Mapping through [annotations](https://www.doctrine-project.org/projects/doctrine-annotations/en/2.0/index.html) is still supported for backward compatibility, but they are considered deprecated and attributes are now the recommended approach.
Both methods are convenient as they allow grouping the code and the configuration but, if you want to decouple classes from their metadata, you can switch to XML or YAML mappings.
They are supported as well.

Expand Down

0 comments on commit 9933fcc

Please sign in to comment.