nciri / zend-db-model-generator

Automatically exported from code.google.com/p/zend-db-model-generator
0 stars 0 forks source link

_convertTypeToPhp doesn't recognize enum type #22

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a column with enum type
2. Run ZDMG
3. $res is undefined on /var/www/zdmg/class/Make.mysql.php on line 48

What is the expected output? What do you see instead?
The type itself, not being shown due to lack of verbose

What version of the product are you using? On what operating system?
0.6, Ubuntu Linux

Please provide any additional information below.
This can be fixed by adding enum to the regular expression at line 39, on 
Make.mysql.php so ZDMG will know this is a string type.

//
} elseif(preg_match('/(datetime|timestamp|blob|char|enum)/', $str)) {

Original issue reported on code.google.com by pe...@citrus7.com.br on 16 Feb 2012 at 1:29

GoogleCodeExporter commented 8 years ago
This issue also occurs with FLOAT and DOUBLE types.

Original comment by pe...@citrus7.com.br on 16 Feb 2012 at 1:33

GoogleCodeExporter commented 8 years ago

Original comment by pedrospdc on 18 Feb 2012 at 6:05