mysql enum type in doctrine2

0 votes
asked Oct 13, 2014 in Solved by kukoman (340 points)

hihi;
how do i register new type?
$conn->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string');

i found this http://support.skipper18.com/918/solved-support-for-custom-field-type
but it would be nice to have simple and up-to-date howto for enum; im sure im not first who uses enum type in mysql...
1. where to store the file
2. name
3. content

2 Answers

0 votes
answered Oct 14, 2014 by kukoman (340 points)
 
Best answer

well perhaps i was not clear enough...

so i answer my self

  1. still not sure

  2. temporary solution open file:
    C:\Program Files (x86)\Skipper\Configurations\Frameworks\Doctrine2.skipper.cfg.xml

  3. add enum part

    <data-types>
      <data-type ... some more types ...>
      <data-type name="enum"         unified-name="@ENUM"/>
    </data-types>
    
0 votes
answered Oct 13, 2014 by ludek.vodicka Skipper developer (140,450 points)

I'm not sure if your question is related to Skipper.

If you want to add new datatype to skipper, it's sufficient to add <data-type> element. For complete information, you can check following help site articles:

But if you need a help regarding adding new datatype to Doctrine2, you need to discuss it on any Doctrine2 forum or stackoverflow.

...