Merge pull request #13176 from aydun/flatten_fix
[civicrm-core.git] / CRM / Core / CodeGen / Specification.php
index 554f3fa27b1db475ccf704af3bd7201f9d36b153..6d15ae5e0ebf59d42166fc8c3c6c38a4dc9c1b6d 100644 (file)
@@ -336,12 +336,13 @@ class CRM_Core_CodeGen_Specification {
         break;
 
       default:
-        $field['sqlType'] = $field['phpType'] = $type;
+        $field['phpType'] = $this->value('phpType', $fieldXML, $type);
+        $field['sqlType'] = $type;
         if ($type == 'int unsigned') {
           $field['crmType'] = 'CRM_Utils_Type::T_INT';
         }
         else {
-          $field['crmType'] = 'CRM_Utils_Type::T_' . strtoupper($type);
+          $field['crmType'] = $this->value('crmType', $fieldXML, 'CRM_Utils_Type::T_' . strtoupper($type));
         }
         break;
     }