* refactored with entity service, so the code can be tested

This commit is contained in:
Danyi Dávid
2016-08-01 17:30:43 +02:00
parent f3939bbd13
commit 2de0bf8add
35 changed files with 359 additions and 215 deletions

View File

@@ -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);