← All changes
|
backend/src/Repository/BaseRepositoryInterface.php
+11
-0
0.6.1-backup
→
1.5
View file →
| @@ -85,8 +85,19 @@ | ||
| 85 | 85 | */ |
| 86 | 86 | public function deleteOneByForeignKeyValue(int $foreignId, string $foreignColumn = 'formId'): int; |
| 87 | 87 | |
| 88 | 88 | /** |
| 89 | + * Bulk update a column for multiple entities by their IDs. | |
| 90 | + * | |
| 91 | + * @param string $column Column name to update | |
| 92 | + * @param mixed $value Value to set | |
| 93 | + * @param array<int> $ids Array of entity IDs | |
| 94 | + * @return int Number of updated entities | |
| 95 | + * @throws InvalidArgumentException If column is not allowed or IDs are empty | |
| 96 | + */ | |
| 97 | + public function bulkUpdateColumn(string $column, $value, array $ids): int; | |
| 98 | + | |
| 99 | + /** | |
| 89 | 100 | * Search for entities based on parameters. |
| 90 | 101 | * |
| 91 | 102 | * @param array<string, mixed> $params |
| 92 | 103 | * @return array<mixed> |