source/Core/Database/Adapter/Doctrine/Database.php
protected function getMetaColumnValueByKey(array $column, $key)
    {
        if (array_key_exists('Field', $column)) {
            $keyMap = [
                'Field'        => 'Field',
                'Type'         => 'Type',
                'Null'         => 'Null',
                'Key'          => 'Key',
                'Default'      => 'Default',
                'Extra'        => 'Extra',
                'Comment'      => 'Comment',
                'CharacterSet' => 'CharacterSet',
                'Collation'    => 'Collation',
            ];
        } else {
            $keyMap = [
                'Field'        => 0,
                'Type'         => 1,
                'Null'         => 2,
                'Key'          => 3,
                'Default'      => 4,
                'Extra'        => 5,
                'Comment'      => 6,
                'CharacterSet' => 7,
                'Collation'    => 8,
            ];
        }

        $result = $column[$keyMap[$key]];

        return $result;
    }
protected function getMetaColumnValueByKey(array $column, $key)
    {
        if (array_key_exists('Field', $column)) {
            $keyMap = [
                'Field'        => 'Field',
                'Type'         => 'Type',
                'Null'         => 'Null',
                'Key'          => 'Key',
                'Default'      => 'Default',
                'Extra'        => 'Extra',
                'Comment'      => 'Comment',
                'CharacterSet' => 'CharacterSet',
                'Collation'    => 'Collation',
            ];
        } else {
            $keyMap = [
                'Field'        => 0,
                'Type'         => 1,
                'Null'         => 2,
                'Key'          => 3,
                'Default'      => 4,
                'Extra'        => 5,
                'Comment'      => 6,
                'CharacterSet' => 7,
                'Collation'    => 8,
            ];
        }

        $result = $column[$keyMap[$key]];

        return $result;
    }
protected function getMetaColumnValueByKey ( array $ column , $ key ) { if ( array_key_exists ( 'Field' , $ column ) ) { $ keyMap = [ 'Field' => 'Field' , 'Type' => 'Type' , 'Null' => 'Null' , 'Key' => 'Key' , 'Default' => 'Default' , 'Extra' => 'Extra' , 'Comment' => 'Comment' , 'CharacterSet' => 'CharacterSet' , 'Collation' => 'Collation' , ] ; } else { $ keyMap = [ 'Field' => 0 , 'Type' => 1 , 'Null' => 2 , 'Key' => 3 , 'Default' => 4 , 'Extra' => 5 , 'Comment' => 6 , 'CharacterSet' => 7 , 'Collation' => 8 , ] ; } $ result = $ column [ $ keyMap [ $ key ] ] ; return $ result ; }
Get the value of a meta column key.

@param array  $column The meta column, where the value has to be fetched.
@param string $key    The key to fetch.

@return mixed
Get the value of a meta column key .