*
* Generated from xml/schema/CRM/Member/Membership.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:dc1ce9eef7433fb191d837f800a9f745)
+ * (GenCodeChecksum:0619aa3946bcadcab1919672c9ecf35a)
*/
/**
/**
* Membership ID
*
- * @var int
+ * @var int|string|null
+ * (SQL type: int unsigned)
+ * Note that values will be retrieved from the database as a string.
*/
public $id;
/**
* FK to Contact ID
*
- * @var int
+ * @var int|string
+ * (SQL type: int unsigned)
+ * Note that values will be retrieved from the database as a string.
*/
public $contact_id;
/**
* FK to Membership Type
*
- * @var int
+ * @var int|string
+ * (SQL type: int unsigned)
+ * Note that values will be retrieved from the database as a string.
*/
public $membership_type_id;
/**
* Beginning of initial membership period (member since...).
*
- * @var date
+ * @var string|null
+ * (SQL type: date)
+ * Note that values will be retrieved from the database as a string.
*/
public $join_date;
/**
* Beginning of current uninterrupted membership period.
*
- * @var date
+ * @var string|null
+ * (SQL type: date)
+ * Note that values will be retrieved from the database as a string.
*/
public $start_date;
/**
* Current membership period expire date.
*
- * @var date
+ * @var string|null
+ * (SQL type: date)
+ * Note that values will be retrieved from the database as a string.
*/
public $end_date;
/**
- * @var string
+ * @var string|null
+ * (SQL type: varchar(128))
+ * Note that values will be retrieved from the database as a string.
*/
public $source;
/**
* FK to Membership Status
*
- * @var int
+ * @var int|string
+ * (SQL type: int unsigned)
+ * Note that values will be retrieved from the database as a string.
*/
public $status_id;
/**
* Admin users may set a manual status which overrides the calculated status. When this flag is true, automated status update scripts should NOT modify status for the record.
*
- * @var bool
+ * @var bool|string|null
+ * (SQL type: tinyint)
+ * Note that values will be retrieved from the database as a string.
*/
public $is_override;
/**
* Then end date of membership status override if 'Override until selected date' override type is selected.
*
- * @var date
+ * @var string|null
+ * (SQL type: date)
+ * Note that values will be retrieved from the database as a string.
*/
public $status_override_end_date;
/**
* Optional FK to Parent Membership.
*
- * @var int
+ * @var int|string|null
+ * (SQL type: int unsigned)
+ * Note that values will be retrieved from the database as a string.
*/
public $owner_membership_id;
/**
* Maximum number of related memberships (membership_type override).
*
- * @var int
+ * @var int|string|null
+ * (SQL type: int)
+ * Note that values will be retrieved from the database as a string.
*/
public $max_related;
/**
- * @var bool
+ * @var bool|string|null
+ * (SQL type: tinyint)
+ * Note that values will be retrieved from the database as a string.
*/
public $is_test;
/**
- * @var bool
+ * @var bool|string|null
+ * (SQL type: tinyint)
+ * Note that values will be retrieved from the database as a string.
*/
public $is_pay_later;
/**
* Conditional foreign key to civicrm_contribution_recur id. Each membership in connection with a recurring contribution carries a foreign key to the recurring contribution record. This assumes we can track these processor initiated events.
*
- * @var int
+ * @var int|string|null
+ * (SQL type: int unsigned)
+ * Note that values will be retrieved from the database as a string.
*/
public $contribution_recur_id;
/**
* The campaign for which this membership is attached.
*
- * @var int
+ * @var int|string|null
+ * (SQL type: int unsigned)
+ * Note that values will be retrieved from the database as a string.
*/
public $campaign_id;
return $plural ? ts('Memberships') : ts('Membership');
}
+ /**
+ * Returns user-friendly description of this entity.
+ *
+ * @return string
+ */
+ public static function getEntityDescription() {
+ return ts('Records of contacts belonging to an organization\'s membership program.');
+ }
+
/**
* Returns foreign keys and entity references.
*
'import' => TRUE,
'where' => 'civicrm_membership.status_override_end_date',
'export' => TRUE,
- 'default' => 'NULL',
+ 'default' => NULL,
'table_name' => 'civicrm_membership',
'entity' => 'Membership',
'bao' => 'CRM_Member_BAO_Membership',
'type' => 'EntityRef',
'label' => ts("Campaign"),
],
+ 'pseudoconstant' => [
+ 'table' => 'civicrm_campaign',
+ 'keyColumn' => 'id',
+ 'labelColumn' => 'title',
+ 'prefetch' => 'FALSE',
+ ],
'add' => '3.4',
],
];