mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-17 18:16:46 +03:00
Use attributes instead of annotations (#1602)
This commit is contained in:
@@ -5,5 +5,5 @@
|
||||
<bg=green;fg=white> The Doctrine configuration has been already done.</>
|
||||
<bg=green;fg=white> You now can use `phone_number` as an ORM-Type: </>
|
||||
|
||||
/** @ORM\Column(type="phone_number") */
|
||||
private $phoneNumber;
|
||||
#[ORM\Column(type: 'phone_number')]
|
||||
private ?PhoneNumber $phoneNumber = null;
|
||||
|
||||
Reference in New Issue
Block a user