Skip to content

Commit

Permalink
Merge pull request #16665 from pradpnayak/priceSetSchema
Browse files Browse the repository at this point in the history
Add pseudoconstant for priceset
  • Loading branch information
seamuslee001 authored Mar 2, 2020
2 parents d365b61 + 23df350 commit 93643dc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 6 additions & 1 deletion CRM/Price/DAO/PriceSetEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Generated from xml/schema/CRM/Price/PriceSetEntity.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:84d5fcf5379a96e8a9bf767f7162d947)
* (GenCodeChecksum:a4fdcc0f0c59179ec6ef07fd1cd87537)
*/

/**
Expand Down Expand Up @@ -138,6 +138,11 @@ public static function &fields() {
'bao' => 'CRM_Price_DAO_PriceSetEntity',
'localizable' => 0,
'FKClassName' => 'CRM_Price_DAO_PriceSet',
'pseudoconstant' => [
'table' => 'civicrm_price_set',
'keyColumn' => 'id',
'labelColumn' => 'title',
],
],
];
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
Expand Down
6 changes: 5 additions & 1 deletion xml/schema/Price/PriceSetEntity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@
<required>true</required>
<comment>price set being used</comment>
<add>1.8</add>
<pseudoconstant>
<table>civicrm_price_set</table>
<keyColumn>id</keyColumn>
<labelColumn>title</labelColumn>
</pseudoconstant>
</field>
<foreignKey>
<name>price_set_id</name>
Expand All @@ -61,4 +66,3 @@
<add>1.8</add>
</index>
</table>

0 comments on commit 93643dc

Please sign in to comment.