0 votes

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

in Solved by (340 points)

2 Answers

0 votes
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>
    
by (340 points)
0 votes

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.

by Skipper developer (141k points)