public function postFetch($property = null) {
        if (!empty($this->settings)) {
            foreach ($this->settings as $column => $descArray) {
                if ($descArray['type'] === 'ReferenceMany') {
                    if (is_string($this->$column) && $newValue = json_decode($this->$column,  true))
                            $this->$column = $newValue;
                    $this->$column = new ArrayCollection($this->$column ?
                            explode(self::ARRAY_COLLECTION_SEPARATOR, $this->$column): array());
                }
            }
        }

        parent::postFetch();
    }
public function postFetch($property = null) {
        if (!empty($this->settings)) {
            foreach ($this->settings as $column => $descArray) {
                if ($descArray['type'] === 'ReferenceMany') {
                    if (is_string($this->$column) && $newValue = json_decode($this->$column,  true))
                            $this->$column = $newValue;
                    $this->$column = new ArrayCollection($this->$column ?
                            explode(self::ARRAY_COLLECTION_SEPARATOR, $this->$column): array());
                }
            }
        }

        parent::postFetch();
    }
public function postFetch ( $ property = null ) { if ( ! empty ( $ this -> settings ) ) { foreach ( $ this -> settings as $ column => $ descArray ) { if ( $ descArray [ 'type' ] === 'ReferenceMany' ) { if ( is_string ( $ this -> $ column ) && $ newValue = json_decode ( $ this -> $ column , true ) ) $ this -> $ column = $ newValue ; $ this -> $ column = new ArrayCollection ( $ this -> $ column ? explode ( self :: ARRAY_COLLECTION_SEPARATOR , $ this -> $ column ) : array ( ) ) ; } } } parent :: postFetch ( ) ; }
Function to call after fetching row

Straightens out ReferenceMany into ArrayCollection
Function to call after fetching row