Merge pull request #16979 from eileenmcnaughton/cw
[civicrm-core.git] / xml / templates / dao.tpl
index 7970e4f6df3b8d93a7e2c18bcadc71414e73edb6..ac6b477ec3f292522942041013e0c9beea0d4d62 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /**
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2020
+ * @copyright CiviCRM LLC https://civicrm.org/licensing
  *
  * Generated from {$table.sourceFile}
  * {$generated}
@@ -124,7 +124,9 @@ class {$table.className} extends CRM_Core_DAO {ldelim}
 {if $field.export}
                       'export'    => {$field.export|strtoupper},
 {/if} {* field.export *}
-
+{if $field.contactType}
+                      'contactType' => {if $field.contactType == 'null'}NULL{else}'{$field.contactType}'{/if},
+{/if}
 {if $field.rule}
                       'rule'      => '{$field.rule}',
 {/if} {* field.rule *}