Use metadata for getOptions abbreviation & include currency symbol
[civicrm-core.git] / CRM / Grant / DAO / Grant.php
index 1ec1adbef61bb822eecc22484ba4f463a9c1433a..af216a4e693f979cd473c4e74cecc6ccd1ca6e30 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Grant/Grant.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:e8021ad180172c83225951d078a53c36)
+ * (GenCodeChecksum:03885f41aa2d1f7299c66134ddd19ec2)
  */
 
 /**
@@ -31,14 +31,14 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
   /**
    * Unique Grant id
    *
-   * @var int unsigned
+   * @var int
    */
   public $id;
 
   /**
    * Contact ID of contact record given grant belongs to.
    *
-   * @var int unsigned
+   * @var int
    */
   public $contact_id;
 
@@ -73,14 +73,14 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
   /**
    * Yes/No field stating whether grant report was received by donor.
    *
-   * @var boolean
+   * @var bool
    */
   public $grant_report_received;
 
   /**
    * Type of grant. Implicit FK to civicrm_option_value in grant_type option_group.
    *
-   * @var int unsigned
+   * @var int
    */
   public $grant_type_id;
 
@@ -122,14 +122,14 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
   /**
    * Id of Grant status.
    *
-   * @var int unsigned
+   * @var int
    */
   public $status_id;
 
   /**
    * FK to Financial Type.
    *
-   * @var int unsigned
+   * @var int
    */
   public $financial_type_id;
 
@@ -298,7 +298,7 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
           'pseudoconstant' => [
             'optionGroupName' => 'grant_type',
             'optionEditPath' => 'civicrm/admin/options/grant_type',
-          ]
+          ],
         ],
         'amount_total' => [
           'name' => 'amount_total',
@@ -308,7 +308,7 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
           'required' => TRUE,
           'precision' => [
             20,
-            2
+            2,
           ],
           'import' => TRUE,
           'where' => 'civicrm_grant.amount_total',
@@ -329,7 +329,7 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
           'description' => ts('Requested grant amount, in original currency (optional).'),
           'precision' => [
             20,
-            2
+            2,
           ],
           'where' => 'civicrm_grant.amount_requested',
           'dataPattern' => '/^\d+(\.\d{2})?$/',
@@ -348,7 +348,7 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
           'description' => ts('Granted amount, in default currency.'),
           'precision' => [
             20,
-            2
+            2,
           ],
           'import' => TRUE,
           'where' => 'civicrm_grant.amount_granted',
@@ -383,7 +383,8 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
             'keyColumn' => 'name',
             'labelColumn' => 'full_name',
             'nameColumn' => 'name',
-          ]
+            'abbrColumn' => 'symbol',
+          ],
         ],
         'rationale' => [
           'name' => 'rationale',
@@ -422,7 +423,7 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
           'pseudoconstant' => [
             'optionGroupName' => 'grant_status',
             'optionEditPath' => 'civicrm/admin/options/grant_status',
-          ]
+          ],
         ],
         'financial_type_id' => [
           'name' => 'financial_type_id',
@@ -440,7 +441,7 @@ class CRM_Grant_DAO_Grant extends CRM_Core_DAO {
             'table' => 'civicrm_financial_type',
             'keyColumn' => 'id',
             'labelColumn' => 'name',
-          ]
+          ],
         ],
       ];
       CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);