public function getUnmappedArray(DataObject $object)
    {
        $output = [];

        foreach ($this->mapping as $unmappedField => $mappedField) {
            if (strpos($mappedField, ':') !== false) {
                list($mappedField, $modifier) = explode(':', $mappedField);
            }

            $output[$unmappedField] = $object->{$mappedField};
        }

        return $output;
    }
public function getUnmappedArray(DataObject $object)
    {
        $output = [];

        foreach ($this->mapping as $unmappedField => $mappedField) {
            if (strpos($mappedField, ':') !== false) {
                list($mappedField, $modifier) = explode(':', $mappedField);
            }

            $output[$unmappedField] = $object->{$mappedField};
        }

        return $output;
    }
public function getUnmappedArray ( DataObject $ object ) { $ output = [ ] ; foreach ( $ this -> mapping as $ unmappedField => $ mappedField ) { if ( strpos ( $ mappedField , ':' ) !== false ) { list ( $ mappedField , $ modifier ) = explode ( ':' , $ mappedField ) ; } $ output [ $ unmappedField ] = $ object -> { $ mappedField } ; } return $ output ; }
Return an array of an object as an unmapped aray, useful for dumping defaults

@return array
Return an array of an object as an unmapped aray useful for dumping defaults