feat: entity move
All checks were successful
JS Unit Tests / test (pull_request) Successful in 20s
Build Test / build (pull_request) Successful in 23s
PHP Unit Tests / test (pull_request) Successful in 48s

Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
2026-03-27 20:37:26 -04:00
parent 6d27b64355
commit dfba1d43be
11 changed files with 472 additions and 10 deletions

View File

@@ -79,25 +79,23 @@ interface ServiceEntityMutableInterface extends ServiceBaseInterface {
*
* @since 2025.05.01
*
* @param string|int $sourceCollection Source collection identifier
* @param string|int $targetCollection Target collection identifier
* @param string|int ...$identifiers Entity identifiers to copy
* @param string|int $target Target collection identifier
* @param array<string|int,array<string|int>> $sources Source entities to move (collection identifier => [entity identifier])
*
* @return array<string|int,string|int> Map of source identifier => new identifier
* @return array<string|int,bool> List of moved entity identifiers
*/
public function entityCopy(string|int $sourceCollection, string|int $targetCollection, string|int ...$identifiers): array;
public function entityCopy(string|int $target, array $sources): array;
/**
* Moves entities to another collection
*
* @since 2025.05.01
*
* @param string|int $sourceCollection Source collection identifier
* @param string|int $targetCollection Target collection identifier
* @param string|int ...$identifiers Entity identifiers to move
*
* @param string|int $target Target collection identifier
* @param array<string|int,array<string|int>> $sources Source entities to move (collection identifier => [entity identifier])
*
* @return array<string|int,bool> List of moved entity identifiers
*/
public function entityMove(string|int $sourceCollection, string|int $targetCollection, string|int ...$identifiers): array;
public function entityMove(string|int $target, array $sources): array;
}