-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathgroup_sequence.yaml
16 lines (16 loc) · 1.13 KB
/
group_sequence.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
questions:
-
uuid: 1eec03a4-5509-66f2-84f8-53d0de950cee
question: "What's the aim of a GroupSequence ?"
answers:
- { value: 'To validate Object, Entity with a Group of Validators', correct: false }
- { value: 'To validate groups by steps, it determines the order groups should be validated', correct: true }
help: 'https://symfony.com/doc/current/validation/sequence_provider.html'
-
uuid: 1eec03b4-9e6d-6856-9534-cd3903165108
question: "In which function, if there's a violation in any group, the rest of the groups are not validated. E.g. if 'User' fails, 'Premium' and 'Api' are not validated."
answers:
- { value: "public function getGroupSequence(): array|GroupSequence { return ['User', 'Premium', 'Api']; }", correct: true }
- { value: "public function getGroupSequence(): array|GroupSequence { return [[['User'], 'Premium'], 'Api']; }", correct: false }
- { value: "public function getGroupSequence(): array|GroupSequence { return [['User'], ['Premium'], ['Api']]; }", correct: false }
help: 'https://symfony.com/doc/current/validation/sequence_provider.html#group-sequence-providers'