private function getRelationshipDeltasMulti($key, $new_value)
{
$old_ids = $this->getDriver()->getMultiValueIndex($key);
$new_ids = [];
if ($new_value) {
foreach ($new_value as $item) {
$new_ids[] = $this->getEntityId($item);
}
}
return [array_diff($old_ids, $new_ids), array_diff($new_ids, $old_ids), array_intersect($old_ids, $new_ids)];
}