doctrine 与 mysql 数据类型的详细转换规则。

doctrine 与 mysql 数据类型的详细转换规则

//           mysql          -> doctrine
array(
            'tinyint'       => 'boolean',
            'smallint'      => 'smallint',
            'mediumint'     => 'integer',
            'int'           => 'integer',
            'integer'       => 'integer',
            'bigint'        => 'bigint',
            'tinytext'      => 'text',
            'mediumtext'    => 'text',
            'longtext'      => 'text',
            'text'          => 'text',
            'varchar'       => 'string',
            'string'        => 'string',
            'char'          => 'string',
            'date'          => 'date',
            'datetime'      => 'datetime',
            'timestamp'     => 'datetime',
            'time'          => 'time',
            'float'         => 'float',
            'double'        => 'float',
            'real'          => 'float',
            'decimal'       => 'decimal',
            'numeric'       => 'decimal',
            'year'          => 'date',
);

原文:https://blog.csdn.net/jiaochangyun/article/details/7249331

 

posted @ 2019-07-08 09:11  我的五年  阅读(8)  评论(0)    收藏  举报  来源