projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add pseudoconstant for Relationship.relationship_type_id
[civicrm-core.git]
/
CRM
/
Contact
/
DAO
/
Relationship.php
diff --git
a/CRM/Contact/DAO/Relationship.php
b/CRM/Contact/DAO/Relationship.php
index 8ad5e40702fd2e64cd43e439993f009502053f01..6312c40554160d383a87e937feb8dd47aa623809 100644
(file)
--- a/
CRM/Contact/DAO/Relationship.php
+++ b/
CRM/Contact/DAO/Relationship.php
@@
-6,7
+6,7
@@
*
* Generated from xml/schema/CRM/Contact/Relationship.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
*
* Generated from xml/schema/CRM/Contact/Relationship.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:
7fed0ad7c2ed2b072582b55afdb6469f
)
+ * (GenCodeChecksum:
5c1cfe38206fb7c465befe517bf6f23d
)
*/
/**
*/
/**
@@
-59,7
+59,7
@@
class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
public $contact_id_b;
/**
public $contact_id_b;
/**
- *
id of the
relationship
+ *
Type of
relationship
*
* @var int
*/
*
* @var int
*/
@@
-206,7
+206,7
@@
class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
'name' => 'relationship_type_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Relationship Type'),
'name' => 'relationship_type_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Relationship Type'),
- 'description' => ts('
id of the
relationship'),
+ 'description' => ts('
Type of
relationship'),
'required' => TRUE,
'where' => 'civicrm_relationship.relationship_type_id',
'table_name' => 'civicrm_relationship',
'required' => TRUE,
'where' => 'civicrm_relationship.relationship_type_id',
'table_name' => 'civicrm_relationship',
@@
-217,6
+217,12
@@
class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
'html' => [
'type' => 'Select',
],
'html' => [
'type' => 'Select',
],
+ 'pseudoconstant' => [
+ 'table' => 'civicrm_relationship_type',
+ 'keyColumn' => 'id',
+ 'labelColumn' => 'label_a_b',
+ 'nameColumn' => 'name_a_b',
+ ],
'add' => '1.1',
],
'relationship_start_date' => [
'add' => '1.1',
],
'relationship_start_date' => [