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 14b10a52802e77892254edd2063d4583955aaac6..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:
25faea8225f483ae95cf29af08a8542
d)
+ * (GenCodeChecksum:
5c1cfe38206fb7c465befe517bf6f23
d)
*/
/**
*/
/**
@@
-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
*/
@@
-124,9
+124,12
@@
class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
/**
* Returns localized title of this entity.
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
*/
- public static function getEntityTitle() {
- return
ts('Relationships
');
+ public static function getEntityTitle(
$plural = FALSE
) {
+ return
$plural ? ts('Relationships') : ts('Relationship
');
}
/**
}
/**
@@
-203,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',
@@
-214,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' => [