Add pseudoconstant for priceset
authorPradeep Nayak <pradpnayak@gmail.com>
Fri, 28 Feb 2020 12:14:53 +0000 (12:14 +0000)
committerPradeep Nayak <pradpnayak@gmail.com>
Sat, 29 Feb 2020 23:48:55 +0000 (23:48 +0000)
CRM/Price/DAO/PriceField.php
xml/schema/Price/PriceField.xml

index 0b988900fa66dfa44665053c0981c7272a3889ee..56dc69ac28974cefb4e3012a4e1ab9f1d0cb9eed 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Price/PriceField.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:60b0dde8a1e8d4933abc6df200d99809)
+ * (GenCodeChecksum:88307b88d5be27887068a778e663b0a2)
  */
 
 /**
@@ -200,6 +200,11 @@ class CRM_Price_DAO_PriceField extends CRM_Core_DAO {
           'bao' => 'CRM_Price_BAO_PriceField',
           'localizable' => 0,
           'FKClassName' => 'CRM_Price_DAO_PriceSet',
+          'pseudoconstant' => [
+            'table' => 'civicrm_price_set',
+            'keyColumn' => 'id',
+            'labelColumn' => 'title',
+          ],
         ],
         'name' => [
           'name' => 'name',
index 57efda8f9058845dcee5b347a068ceecfdcfdb8f..c3ac6dd662ec5894d4134f2b639d46afad3113b4 100644 (file)
     <type>int unsigned</type>
     <required>true</required>
     <comment>FK to civicrm_price_set</comment>
+    <pseudoconstant>
+      <table>civicrm_price_set</table>
+      <keyColumn>id</keyColumn>
+      <labelColumn>title</labelColumn>
+    </pseudoconstant>
     <add>1.8</add>
   </field>
   <foreignKey>
     <drop>3.3</drop>
   </field>
 </table>
-