protected function addColumnToMappingArray(ORM\Column $columnAnnotation, array $mapping = [], $fieldName = null)
    {
        if ($fieldName !== null) {
            $mapping['fieldName'] = $fieldName;
        }

        $mapping['type'] = ($columnAnnotation->type === 'string') ? null : $columnAnnotation->type;
        $mapping['scale'] = $columnAnnotation->scale;
        $mapping['length'] = $columnAnnotation->length;
        $mapping['unique'] = $columnAnnotation->unique;
        $mapping['nullable'] = $columnAnnotation->nullable;
        $mapping['precision'] = $columnAnnotation->precision;

        if ($columnAnnotation->options) {
            $mapping['options'] = $columnAnnotation->options;
        }

        if (isset($columnAnnotation->name)) {
            $mapping['columnName'] = $columnAnnotation->name;
        }

        if (isset($columnAnnotation->columnDefinition)) {
            $mapping['columnDefinition'] = $columnAnnotation->columnDefinition;
        }

        return $mapping;
    }
protected function addColumnToMappingArray(ORM\Column $columnAnnotation, array $mapping = [], $fieldName = null)
    {
        if ($fieldName !== null) {
            $mapping['fieldName'] = $fieldName;
        }

        $mapping['type'] = ($columnAnnotation->type === 'string') ? null : $columnAnnotation->type;
        $mapping['scale'] = $columnAnnotation->scale;
        $mapping['length'] = $columnAnnotation->length;
        $mapping['unique'] = $columnAnnotation->unique;
        $mapping['nullable'] = $columnAnnotation->nullable;
        $mapping['precision'] = $columnAnnotation->precision;

        if ($columnAnnotation->options) {
            $mapping['options'] = $columnAnnotation->options;
        }

        if (isset($columnAnnotation->name)) {
            $mapping['columnName'] = $columnAnnotation->name;
        }

        if (isset($columnAnnotation->columnDefinition)) {
            $mapping['columnDefinition'] = $columnAnnotation->columnDefinition;
        }

        return $mapping;
    }
protected function addColumnToMappingArray ( ORM \ Column $ columnAnnotation , array $ mapping = [ ] , $ fieldName = null ) { if ( $ fieldName !== null ) { $ mapping [ 'fieldName' ] = $ fieldName ; } $ mapping [ 'type' ] = ( $ columnAnnotation -> type === 'string' ) ? null : $ columnAnnotation -> type ; $ mapping [ 'scale' ] = $ columnAnnotation -> scale ; $ mapping [ 'length' ] = $ columnAnnotation -> length ; $ mapping [ 'unique' ] = $ columnAnnotation -> unique ; $ mapping [ 'nullable' ] = $ columnAnnotation -> nullable ; $ mapping [ 'precision' ] = $ columnAnnotation -> precision ; if ( $ columnAnnotation -> options ) { $ mapping [ 'options' ] = $ columnAnnotation -> options ; } if ( isset ( $ columnAnnotation -> name ) ) { $ mapping [ 'columnName' ] = $ columnAnnotation -> name ; } if ( isset ( $ columnAnnotation -> columnDefinition ) ) { $ mapping [ 'columnDefinition' ] = $ columnAnnotation -> columnDefinition ; } return $ mapping ; }
Parse the given Column into an array

@param ORM\Column $columnAnnotation
@param array $mapping
@param string $fieldName
@return array
Parse the given Column into an array