* refactored with entity service, so the code can be tested
This commit is contained in:
@@ -63,7 +63,7 @@ class DisallowRemoveByValue extends AbstractCollectionStrategy
|
||||
$collection = $collection->toArray();
|
||||
}
|
||||
|
||||
$toAdd = new ArrayCollection(array_udiff($value, $collection, array($this, 'compareObjects')));
|
||||
$toAdd = new ArrayCollection(array_udiff($value, $collection, [$this, 'compareObjects']));
|
||||
|
||||
$this->object->$adder($toAdd);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user