*
* Generated from xml/schema/CRM/Contact/RelationshipType.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:81dab8a4d80601fe4afa3dc1556cc804)
+ * (GenCodeChecksum:258f862b2238ae69432d8955ae8df803)
*/
/**
* Database access object for the RelationshipType entity.
*/
class CRM_Contact_DAO_RelationshipType 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('Relationship Types');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Relationship Types') : ts('Relationship Type');
}
/**
'entity' => 'RelationshipType',
'bao' => 'CRM_Contact_BAO_RelationshipType',
'localizable' => 0,
+ 'add' => '1.1',
],
'name_a_b' => [
'name' => 'name_a_b',
'entity' => 'RelationshipType',
'bao' => 'CRM_Contact_BAO_RelationshipType',
'localizable' => 0,
+ 'add' => '1.1',
],
'label_a_b' => [
'name' => 'label_a_b',
'html' => [
'type' => 'Text',
],
+ 'add' => '3.0',
],
'name_b_a' => [
'name' => 'name_b_a',
'entity' => 'RelationshipType',
'bao' => 'CRM_Contact_BAO_RelationshipType',
'localizable' => 0,
+ 'add' => '1.1',
],
'label_b_a' => [
'name' => 'label_b_a',
'html' => [
'type' => 'Text',
],
+ 'add' => '3.0',
],
'description' => [
'name' => 'description',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.1',
],
'contact_type_a' => [
'name' => 'contact_type_a',
'labelColumn' => 'label',
'condition' => 'parent_id IS NULL',
],
+ 'add' => '1.1',
],
'contact_type_b' => [
'name' => 'contact_type_b',
'labelColumn' => 'label',
'condition' => 'parent_id IS NULL',
],
+ 'add' => '1.1',
],
'contact_sub_type_a' => [
'name' => 'contact_sub_type_a',
'labelColumn' => 'label',
'condition' => 'parent_id IS NOT NULL',
],
+ 'add' => '3.1',
],
'contact_sub_type_b' => [
'name' => 'contact_sub_type_b',
'labelColumn' => 'label',
'condition' => 'parent_id IS NOT NULL',
],
+ 'add' => '3.1',
],
'is_reserved' => [
'name' => 'is_reserved',
'html' => [
'type' => 'CheckBox',
],
+ 'add' => '1.1',
],
'is_active' => [
'name' => 'is_active',
'html' => [
'type' => 'CheckBox',
],
+ 'add' => '1.1',
],
];
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);