Merge pull request #17345 from eileenmcnaughton/ev_batch
[civicrm-core.git] / CRM / Core / DAO / MessageTemplate.php
index 71fa8870ef9c416b78124cc6ddc835d6c2ac741d..f9d7dcb6754e11ccc9d6f8bee8cfb0f976d9dafe 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/MessageTemplate.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:41d8acdc31465a852930f88cf1604224)
+ * (GenCodeChecksum:90ed9b8ad7299f01d2f83ea90b7b7a15)
  */
 
 /**
@@ -75,6 +75,11 @@ class CRM_Core_DAO_MessageTemplate extends CRM_Core_DAO {
    */
   public $workflow_id;
 
+  /**
+   * @var string
+   */
+  public $workflow_name;
+
   /**
    * is this the default message template for the workflow referenced by workflow_id?
    *
@@ -197,7 +202,7 @@ class CRM_Core_DAO_MessageTemplate extends CRM_Core_DAO {
         'workflow_id' => [
           'name' => 'workflow_id',
           'type' => CRM_Utils_Type::T_INT,
-          'title' => ts('Message Template Workflow'),
+          'title' => ts('Deprecated field for Message Template Workflow.'),
           'description' => ts('a pseudo-FK to civicrm_option_value'),
           'where' => 'civicrm_msg_template.workflow_id',
           'table_name' => 'civicrm_msg_template',
@@ -205,6 +210,18 @@ class CRM_Core_DAO_MessageTemplate extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_MessageTemplate',
           'localizable' => 0,
         ],
+        'workflow_name' => [
+          'name' => 'workflow_name',
+          'type' => CRM_Utils_Type::T_STRING,
+          'title' => ts('Message Template Workflow Name'),
+          'maxlength' => 255,
+          'size' => CRM_Utils_Type::HUGE,
+          'where' => 'civicrm_msg_template.workflow_name',
+          'table_name' => 'civicrm_msg_template',
+          'entity' => 'MessageTemplate',
+          'bao' => 'CRM_Core_BAO_MessageTemplate',
+          'localizable' => 0,
+        ],
         'is_default' => [
           'name' => 'is_default',
           'type' => CRM_Utils_Type::T_BOOLEAN,