You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #51987 [DoctrineBridge][TwigBridge] Add PHPDoc to attributes (squrious)
This PR was squashed before being merged into the 7.1 branch.
Discussion
----------
[DoctrineBridge][TwigBridge] Add PHPDoc to attributes
| Q | A
| ------------- | ---
| Branch? | 7.1
| Bug fix? | no
| New feature? | yes
| Deprecations? | no
| Tickets | Part of #51920
| License | MIT
Add PHPDoc to attributes in `Symfony\Bridge\Doctrine` and `Symfony\Bridge\Twig`.
Commits
-------
d62ebc7 [DoctrineBridge][TwigBridge] Add PHPDoc to attributes
Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/Attribute/MapEntity.php
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,19 @@
20
20
#[\Attribute(\Attribute::TARGET_PARAMETER)]
21
21
class MapEntity extends ValueResolver
22
22
{
23
+
/**
24
+
* @param class-string|null $class The entity class
25
+
* @param string|null $objectManager Specify the object manager used to retrieve the entity
26
+
* @param string|null $expr An expression to fetch the entity using the {@see https://symfony.com/doc/current/components/expression_language.html ExpressionLanguage} syntax.
27
+
* Any request attribute are available as a variable, and your entity repository in the 'repository' variable.
28
+
* @param array<string, string>|null $mapping Configures the properties and values to use with the findOneBy() method
29
+
* The key is the route placeholder name and the value is the Doctrine property name
30
+
* @param string[]|null $exclude Configures the properties that should be used in the findOneBy() method by excluding
31
+
* one or more properties so that not all are used
32
+
* @param bool|null $stripNull Whether to prevent null values from being used as parameters in the query (defaults to false)
33
+
* @param string[]|string|null $id If an id option is configured and matches a route parameter, then the resolver will find by the primary key
34
+
* @param bool|null $evictCache If true, forces Doctrine to always fetch the entity from the database instead of cache (defaults to false)
0 commit comments