-
Notifications
You must be signed in to change notification settings - Fork 3
Type mapping
ccapndave edited this page Feb 23, 2011
·
4 revisions
Doctrine types map to Flextrine types as shown below:
Doctrine type | AS3 type |
string | String |
integer | Number |
smallint | Number |
bigint | Number |
boolean | Boolean |
decimal | Number |
date | Date |
datetime | Date |
time | not currently supported |
text | String |
Unfortunately due to an omission from the Flash Player it is not currently possible to set a Number field so that it writes null to the database. Therefore the code generator will automatically initialize all Numbers to 0.
Id fields are a special case and an int id field will always be mapped to a String id field in AS3. This is because Flextrine needs to be able to set null ids (for lazy loading and persisting new entities) and the above mentioned bug makes this impossible. Do not manually change the type of the id field in your entities!