pseudoconstant for bounce type
authorPradeep Nayak <pradpnayak@gmail.com>
Mon, 9 Mar 2020 22:57:46 +0000 (22:57 +0000)
committerPradeep Nayak <pradpnayak@gmail.com>
Mon, 9 Mar 2020 22:59:38 +0000 (22:59 +0000)
CRM/Mailing/DAO/BouncePattern.php
xml/schema/Mailing/BouncePattern.xml

index c90182607a382eb975f8e214c5918059fc1d821c..5bb9f028cfd9a37105ef44949ada02c859c3604b 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/BouncePattern.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:5b77be40f02d6350d3a973ae6e090883)
+ * (GenCodeChecksum:c72ed4774d00758d25e6a167f4215906)
  */
 
 /**
@@ -101,6 +101,11 @@ class CRM_Mailing_DAO_BouncePattern extends CRM_Core_DAO {
           'bao' => 'CRM_Mailing_BAO_BouncePattern',
           'localizable' => 0,
           'FKClassName' => 'CRM_Mailing_DAO_BounceType',
+          'pseudoconstant' => [
+            'table' => 'civicrm_mailing_bounce_type',
+            'keyColumn' => 'id',
+            'labelColumn' => 'name',
+          ],
         ],
         'pattern' => [
           'name' => 'pattern',
index 3715febd2d0b3a38c3e8fcef2746fad81b187945..357572c2728e89c04a3f0ba7201198da18f00fd4 100644 (file)
     <type>int unsigned</type>
     <required>true</required>
     <comment>Type of bounce</comment>
+    <pseudoconstant>
+      <table>civicrm_mailing_bounce_type</table>
+      <keyColumn>id</keyColumn>
+      <labelColumn>name</labelColumn>
+    </pseudoconstant>
   </field>
   <foreignKey>
     <name>bounce_type_id</name>