feat: entity move
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user