/**
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2018
+ * @copyright CiviCRM LLC (c) 2004-2019
*
* Generated from xml/schema/CRM/Core/EntityFile.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:d2d6205c8973c5ad7a989ecb674b9f94)
+ * (GenCodeChecksum:febc5ccbfb965f8f4ba8477d4db0e5f3)
*/
/**
*
* @var string
*/
- static $_tableName = 'civicrm_entity_file';
+ public static $_tableName = 'civicrm_entity_file';
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var bool
*/
- static $_log = TRUE;
+ public static $_log = TRUE;
/**
* primary key
*/
public static function getReferenceColumns() {
if (!isset(Civi::$statics[__CLASS__]['links'])) {
- Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__);
+ Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'file_id', 'civicrm_file', 'id');
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Dynamic(self::getTableName(), 'entity_id', NULL, 'id', 'entity_table');
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
'title' => ts('Entity File ID'),
'description' => ts('primary key'),
'required' => TRUE,
+ 'where' => 'civicrm_entity_file.id',
'table_name' => 'civicrm_entity_file',
'entity' => 'EntityFile',
'bao' => 'CRM_Core_DAO_EntityFile',
'description' => ts('physical tablename for entity being joined to file, e.g. civicrm_contact'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_entity_file.entity_table',
'table_name' => 'civicrm_entity_file',
'entity' => 'EntityFile',
'bao' => 'CRM_Core_DAO_EntityFile',
'title' => ts('Entity ID'),
'description' => ts('FK to entity table specified in entity_table column.'),
'required' => TRUE,
+ 'where' => 'civicrm_entity_file.entity_id',
'table_name' => 'civicrm_entity_file',
'entity' => 'EntityFile',
'bao' => 'CRM_Core_DAO_EntityFile',
'title' => ts('File'),
'description' => ts('FK to civicrm_file'),
'required' => TRUE,
+ 'where' => 'civicrm_entity_file.file_id',
'table_name' => 'civicrm_entity_file',
'entity' => 'EntityFile',
'bao' => 'CRM_Core_DAO_EntityFile',