Skip to content

Commit

Permalink
Merge pull request #16727 from pradpnayak/priceSetSchema
Browse files Browse the repository at this point in the history
pseudoconstant for bounce type
  • Loading branch information
colemanw authored Mar 10, 2020
2 parents 385d044 + f73a6df commit 895b386
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CRM/Mailing/DAO/BouncePattern.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Generated from xml/schema/CRM/Mailing/BouncePattern.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:5b77be40f02d6350d3a973ae6e090883)
* (GenCodeChecksum:c72ed4774d00758d25e6a167f4215906)
*/

/**
Expand Down Expand Up @@ -101,6 +101,11 @@ public static function &fields() {
'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',
Expand Down
5 changes: 5 additions & 0 deletions xml/schema/Mailing/BouncePattern.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
<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>
Expand Down

0 comments on commit 895b386

Please sign in to comment.