johmue/mysql-workbench-schema-exporter — Issue #47: Bad types created "tinyint" and "char" and "enum"
Author: intellix
Created: 2011-11-06 23:59:15+00:00
State: open

Hey, noticed that wrong types are used. Using D2 and I'm getting type="tinyint" and type="char" which aren't allowed. I just opened them all in Notepad++ and did a find/replace to fix.

I read into the enum and D2 suggested that I change the columns to something else:
http://www.doctrine-project.org/docs/orm/2.1/en/cookbook/mysql-enums.html

I noticed i have a few slightly different named tables too (to do with plural and singular table names). I'm not quite sure what's going on, if its a required practice by D2 or if there's an error here.

For instance... I have a table called claninvites which generates this:

/**
* @OneToMany(targetEntity="Claninvite", mappedBy="clan")
*/
private $claninvites;

I had to add the 's' to Claninvites to get it to work. (I'm using ZF2 btw if that changes anything?)