0 votes

Currently ORMDesigner gives us a pre-defined enumeration for Field Type. We have a use case in our Doctrine 2 project which calls for encrypting field contents, and the solution calls for a field type of "encrypted_string" rather than "string". Currently our only choice is to manually manage this after we've exported from ORMD.

in Solved by (380 points)
recategorized by

1 Answer

+1 vote
Best answer

Hi Jeremiah, if I understand correctly, you need to extend list of field data types like "string",'integer","double",.. ?

If so, it's pretty simple to add new data type. Only thing you need to do is to add new <data-type> element to Doctrine2 configuration file (or your custom cfg file):

  <data-type name="encrypted_string"/>
by Skipper developer (141k points)
edited by

Perfect, I just added a file to the repo next to the .ormdes file that contains this

<ormd2-configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <orm-configuration name="Doctrine2">
   <data-type name="encrypted_string"/>

The links in this answer are no longer valid

thanks. links fixed