Merge pull request #14326 from civicrm/5.14
[civicrm-core.git] / CRM / Contact / DAO / GroupContactCache.php
index a6d183b05286b4bc1aabcfd59cda9a43c449098f..c6697590c45e9783378879e9cb1a0fdb8bace286 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/GroupContactCache.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:98cff858204d34551eec0b9bee6e24af)
+ * (GenCodeChecksum:217f20fad2d47f50e3a9c43b62df2c17)
  */
 
 /**
@@ -19,33 +19,33 @@ class CRM_Contact_DAO_GroupContactCache extends CRM_Core_DAO {
    *
    * @var string
    */
-  static $_tableName = 'civicrm_group_contact_cache';
+  public static $_tableName = 'civicrm_group_contact_cache';
 
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
    * @var bool
    */
-  static $_log = FALSE;
+  public static $_log = FALSE;
 
   /**
    * primary key
    *
-   * @var int unsigned
+   * @var int
    */
   public $id;
 
   /**
    * FK to civicrm_group
    *
-   * @var int unsigned
+   * @var int
    */
   public $group_id;
 
   /**
    * FK to civicrm_contact
    *
-   * @var int unsigned
+   * @var int
    */
   public $contact_id;
 
@@ -65,7 +65,7 @@ class CRM_Contact_DAO_GroupContactCache extends CRM_Core_DAO {
    */
   public static function getReferenceColumns() {
     if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__);
+      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
       Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'group_id', 'civicrm_group', 'id');
       Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
       CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
@@ -87,6 +87,7 @@ class CRM_Contact_DAO_GroupContactCache extends CRM_Core_DAO {
           'title' => ts('Group Contact Cache ID'),
           'description' => ts('primary key'),
           'required' => TRUE,
+          'where' => 'civicrm_group_contact_cache.id',
           'table_name' => 'civicrm_group_contact_cache',
           'entity' => 'GroupContactCache',
           'bao' => 'CRM_Contact_BAO_GroupContactCache',
@@ -98,6 +99,7 @@ class CRM_Contact_DAO_GroupContactCache extends CRM_Core_DAO {
           'title' => ts('Group'),
           'description' => ts('FK to civicrm_group'),
           'required' => TRUE,
+          'where' => 'civicrm_group_contact_cache.group_id',
           'table_name' => 'civicrm_group_contact_cache',
           'entity' => 'GroupContactCache',
           'bao' => 'CRM_Contact_BAO_GroupContactCache',
@@ -110,7 +112,7 @@ class CRM_Contact_DAO_GroupContactCache extends CRM_Core_DAO {
             'table' => 'civicrm_group',
             'keyColumn' => 'id',
             'labelColumn' => 'title',
-          ]
+          ],
         ],
         'contact_id' => [
           'name' => 'contact_id',
@@ -118,6 +120,7 @@ class CRM_Contact_DAO_GroupContactCache extends CRM_Core_DAO {
           'title' => ts('Contact ID'),
           'description' => ts('FK to civicrm_contact'),
           'required' => TRUE,
+          'where' => 'civicrm_group_contact_cache.contact_id',
           'table_name' => 'civicrm_group_contact_cache',
           'entity' => 'GroupContactCache',
           'bao' => 'CRM_Contact_BAO_GroupContactCache',