setAccessible(true); $reflectionProperty->setValue($object, new ArrayCollection()); } }