*
* Generated from xml/schema/CRM/Contact/Relationship.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:f512c36730defcd334c0e6ccc896e7fb)
+ * (GenCodeChecksum:7fed0ad7c2ed2b072582b55afdb6469f)
*/
/**
* Database access object for the Relationship entity.
*/
class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
+ const EXT = 'civicrm';
+ const TABLE_ADDED = '1.1';
/**
* Static instance to hold the table name.
/**
* 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');
}
/**
'entity' => 'Relationship',
'bao' => 'CRM_Contact_BAO_Relationship',
'localizable' => 0,
+ 'add' => '1.1',
],
'contact_id_a' => [
'name' => 'contact_id_a',
'bao' => 'CRM_Contact_BAO_Relationship',
'localizable' => 0,
'FKClassName' => 'CRM_Contact_DAO_Contact',
+ 'add' => '1.1',
],
'contact_id_b' => [
'name' => 'contact_id_b',
'html' => [
'type' => 'EntityRef',
],
+ 'add' => '1.1',
],
'relationship_type_id' => [
'name' => 'relationship_type_id',
'html' => [
'type' => 'Select',
],
+ 'add' => '1.1',
],
'relationship_start_date' => [
'name' => 'start_date',
'type' => 'Select Date',
'formatType' => 'activityDate',
],
+ 'add' => '1.1',
],
'relationship_end_date' => [
'name' => 'end_date',
'type' => 'Select Date',
'formatType' => 'activityDate',
],
+ 'add' => '1.1',
],
'is_active' => [
'name' => 'is_active',
'html' => [
'type' => 'CheckBox',
],
+ 'add' => '1.1',
],
'description' => [
'name' => 'description',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.5',
],
'is_permission_a_b' => [
'name' => 'is_permission_a_b',
'pseudoconstant' => [
'callback' => 'CRM_Core_SelectValues::getPermissionedRelationshipOptions',
],
+ 'add' => '2.1',
],
'is_permission_b_a' => [
'name' => 'is_permission_b_a',
'pseudoconstant' => [
'callback' => 'CRM_Core_SelectValues::getPermissionedRelationshipOptions',
],
+ 'add' => '2.1',
],
'case_id' => [
'name' => 'case_id',
'bao' => 'CRM_Contact_BAO_Relationship',
'localizable' => 0,
'FKClassName' => 'CRM_Case_DAO_Case',
+ 'add' => '2.2',
],
];
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);