Example #1
0
 /**
  * Returns entity map definition.
  *
  * @return array
  */
 public static function getMap()
 {
     return array_merge(array('TEMPLATE_ID' => array('data_type' => 'integer', 'primary' => true), 'PARENT_TEMPLATE_ID' => array('data_type' => 'integer', 'primary' => true), 'TEMPLATE' => array('data_type' => '\\Bitrix\\Tasks\\Template', 'reference' => array('=this.TEMPLATE_ID' => 'ref.ID'), 'join_type' => 'inner'), 'PARENT_TEMPLATE' => array('data_type' => '\\Bitrix\\Tasks\\Template', 'reference' => array('=this.PARENT_TEMPLATE_ID' => 'ref.ID'), 'join_type' => 'inner')), parent::getMap('\\Bitrix\\Tasks\\Template\\Dependency'));
 }
Example #2
0
 /**
  * Returns entity map definition.
  *
  * @return array
  */
 public static function getMap($entityName)
 {
     $map = parent::getMap($entityName);
     return array_merge($map, array(new Entity\IntegerField(static::getMPCITYColumnName(), array())));
 }