Regenerate DAO files
[civicrm-core.git] / CRM / Contact / DAO / GroupContact.php
index 7b619666f7483d9586a93ee89aa15260d771c622..ba7352ccf1923c971427e5ebc9fc49489adb51d6 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/GroupContact.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:1d229cf09854f6b9a9991a0c0bd86c87)
+ * (GenCodeChecksum:abb2a96c7fd72f93619b605fbb11b4b5)
  */
 
 /**
@@ -19,33 +19,33 @@ class CRM_Contact_DAO_GroupContact extends CRM_Core_DAO {
    *
    * @var string
    */
-  static $_tableName = 'civicrm_group_contact';
+  public static $_tableName = 'civicrm_group_contact';
 
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
    * @var bool
    */
-  static $_log = TRUE;
+  public static $_log = TRUE;
 
   /**
    * 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;
 
@@ -59,14 +59,14 @@ class CRM_Contact_DAO_GroupContact extends CRM_Core_DAO {
   /**
    * Optional location to associate with this membership
    *
-   * @var int unsigned
+   * @var int
    */
   public $location_id;
 
   /**
    * Optional email to associate with this membership
    *
-   * @var int unsigned
+   * @var int
    */
   public $email_id;
 
@@ -86,7 +86,7 @@ class CRM_Contact_DAO_GroupContact 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');
       Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'location_id', 'civicrm_loc_block', 'id');
@@ -110,6 +110,7 @@ class CRM_Contact_DAO_GroupContact extends CRM_Core_DAO {
           'title' => ts('Group Contact ID'),
           'description' => ts('primary key'),
           'required' => TRUE,
+          'where' => 'civicrm_group_contact.id',
           'table_name' => 'civicrm_group_contact',
           'entity' => 'GroupContact',
           'bao' => 'CRM_Contact_BAO_GroupContact',
@@ -121,6 +122,7 @@ class CRM_Contact_DAO_GroupContact extends CRM_Core_DAO {
           'title' => ts('Group ID'),
           'description' => ts('FK to civicrm_group'),
           'required' => TRUE,
+          'where' => 'civicrm_group_contact.group_id',
           'table_name' => 'civicrm_group_contact',
           'entity' => 'GroupContact',
           'bao' => 'CRM_Contact_BAO_GroupContact',
@@ -133,7 +135,7 @@ class CRM_Contact_DAO_GroupContact extends CRM_Core_DAO {
             'table' => 'civicrm_group',
             'keyColumn' => 'id',
             'labelColumn' => 'title',
-          ]
+          ],
         ],
         'contact_id' => [
           'name' => 'contact_id',
@@ -141,6 +143,7 @@ class CRM_Contact_DAO_GroupContact extends CRM_Core_DAO {
           'title' => ts('Contact ID'),
           'description' => ts('FK to civicrm_contact'),
           'required' => TRUE,
+          'where' => 'civicrm_group_contact.contact_id',
           'table_name' => 'civicrm_group_contact',
           'entity' => 'GroupContact',
           'bao' => 'CRM_Contact_BAO_GroupContact',
@@ -154,6 +157,7 @@ class CRM_Contact_DAO_GroupContact extends CRM_Core_DAO {
           'description' => ts('status of contact relative to membership in group'),
           'maxlength' => 8,
           'size' => CRM_Utils_Type::EIGHT,
+          'where' => 'civicrm_group_contact.status',
           'table_name' => 'civicrm_group_contact',
           'entity' => 'GroupContact',
           'bao' => 'CRM_Contact_BAO_GroupContact',
@@ -163,13 +167,14 @@ class CRM_Contact_DAO_GroupContact extends CRM_Core_DAO {
           ],
           'pseudoconstant' => [
             'callback' => 'CRM_Core_SelectValues::groupContactStatus',
-          ]
+          ],
         ],
         'location_id' => [
           'name' => 'location_id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Group Contact Location'),
           'description' => ts('Optional location to associate with this membership'),
+          'where' => 'civicrm_group_contact.location_id',
           'table_name' => 'civicrm_group_contact',
           'entity' => 'GroupContact',
           'bao' => 'CRM_Contact_BAO_GroupContact',
@@ -181,6 +186,7 @@ class CRM_Contact_DAO_GroupContact extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Group Contact Email'),
           'description' => ts('Optional email to associate with this membership'),
+          'where' => 'civicrm_group_contact.email_id',
           'table_name' => 'civicrm_group_contact',
           'entity' => 'GroupContact',
           'bao' => 'CRM_Contact_BAO_GroupContact',