X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContact%2FDAO%2FGroupContact.php;h=ba7352ccf1923c971427e5ebc9fc49489adb51d6;hb=e6ca0a57f0e807c880e52b264a2def7f9acf0058;hp=8a259670c63a4b1914981d39cf8d04863bd8c2b1;hpb=fa45b5b94d6640f4e7430272f6029c91bb3f50b6;p=civicrm-core.git diff --git a/CRM/Contact/DAO/GroupContact.php b/CRM/Contact/DAO/GroupContact.php index 8a259670c6..ba7352ccf1 100644 --- a/CRM/Contact/DAO/GroupContact.php +++ b/CRM/Contact/DAO/GroupContact.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contact/GroupContact.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:1d229cf09854f6b9a9991a0c0bd86c87) + * (GenCodeChecksum:abb2a96c7fd72f93619b605fbb11b4b5) */ /** @@ -31,21 +31,21 @@ class CRM_Contact_DAO_GroupContact extends CRM_Core_DAO { /** * 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; @@ -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',