Commit f5a2780
committed
[DoctrineBridge] Add
This allows to refer to the constant instead of an "arbitrary" string.
For example:
#[ORM\Column(type: UuidType::NAME)]
private $foo;
Doctrine already does it this way in its documentation.
The name of the constant is taken from the already existing
`Symfony\Bridge\Doctrine\Tests\PropertyInfo\Fixtures\DoctrineFooType`
class, where a constant with a similar purpose already exists (albeit
this one is `private`).NAME const for UID types1 parent 8f0543d commit f5a2780
3 files changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
4 | 9 | | |
5 | 10 | | |
6 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | | - | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | | - | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
0 commit comments