public function reverseTransform($value)
    {
        if ($value instanceof Collection) {
            return $value;
        }

        $collection = new ArrayCollection();
        if(null !== $value) {
            $collection->add($value);
        }

        return $collection;
    }
public function reverseTransform($value)
    {
        if ($value instanceof Collection) {
            return $value;
        }

        $collection = new ArrayCollection();
        if(null !== $value) {
            $collection->add($value);
        }

        return $collection;
    }
public function reverseTransform ( $ value ) { if ( $ value instanceof Collection ) { return $ value ; } $ collection = new ArrayCollection ( ) ; if ( null !== $ value ) { $ collection -> add ( $ value ) ; } return $ collection ; }
Transforms a single Object to an ArrayCollection

@param Object $value

@return ArrayCollection
Transforms a single Object to an ArrayCollection