← All changes
|
backend/src/Repository/Field/FieldRepositoryInterface.php
+8
-0
0.4
→
1.5.1
View file →
| @@ -20,8 +20,16 @@ | ||
| 20 | 20 | */ |
| 21 | 21 | public function getFieldsById(int $id): ?array; |
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | + * Get multiple fields by their IDs in a single query. | |
| 25 | + * | |
| 26 | + * @param int[] $fieldIds | |
| 27 | + * @return array<int, object> Indexed by field ID | |
| 28 | + */ | |
| 29 | + public function getFieldsByIds(array $fieldIds): array; | |
| 30 | + | |
| 31 | + /** | |
| 24 | 32 | * Delete multiple fields by their IDs in a single query. |
| 25 | 33 | * |
| 26 | 34 | * @param int[] $ids |
| 27 | 35 | * @return int Number of deleted rows |