Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
|
symfony_4:doctrine_2:les_entites [2022/11/08 09:30] admin |
symfony_4:doctrine_2:les_entites [2022/11/14 13:18] (Version actuelle) admin [Les regexs utiles] |
||
|---|---|---|---|
| Ligne 118: | Ligne 118: | ||
| </ | </ | ||
| - | ==== Les regexts | + | ==== Les regexs |
| Ligne 132: | Ligne 132: | ||
| | | ||
| | | ||
| - | | + | |
| * ) | * ) | ||
| */ | */ | ||
| </ | </ | ||
| + | ----- | ||
| + | |||
| + | Les entiers | ||
| + | |||
| + | <code PHP> | ||
| + | <?php | ||
| + | use Symfony\Component\Validator\Constraints as Assert; | ||
| + | |||
| + | /** | ||
| + | * @ORM\Column(type=" | ||
| + | * | ||
| + | * @Assert\Regex( | ||
| + | | ||
| + | | ||
| + | | ||
| + | * ) | ||
| + | */ | ||
| + | </ | ||
| + | |||
| + | |||
| + | ----- | ||
| + | |||
| + | Téléphone FR | ||
| + | |||
| + | <code PHP> | ||
| + | <?php | ||
| + | use Symfony\Component\Validator\Constraints as Assert; | ||
| + | |||
| + | /** | ||
| + | * @ORM\Column(type=" | ||
| + | * | ||
| + | * @Assert\Regex( | ||
| + | | ||
| + | | ||
| + | | ||
| + | * ) | ||
| + | */ | ||
| + | </ | ||
| + | |||
| + | ----- | ||
| + | |||
| + | |||
| + | |||
| + | <code PHP> | ||
| + | <?php | ||
| + | use Symfony\Component\Validator\Constraints as Assert; | ||
| + | |||
| + | /** | ||
| + | * @ORM\Column(type=" | ||
| + | * | ||
| + | * @Assert\Regex( | ||
| + | | ||
| + | | ||
| + | | ||
| + | * ) | ||
| + | */ | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | Code postal | ||
| + | |||
| + | <code PHP> | ||
| + | <?php | ||
| + | use Symfony\Component\Validator\Constraints as Assert; | ||
| + | |||
| + | /** | ||
| + | * @ORM\Column(type=" | ||
| + | * | ||
| + | * @Assert\Regex( | ||
| + | | ||
| + | | ||
| + | | ||
| + | * ) | ||
| + | */ | ||
| + | </ | ||
| ---- | ---- | ||