7use Bitrix\Im\V2\Common\ActiveRecordImplementation;
8use Bitrix\Im\V2\Common\FieldAccessImplementation;
9use Bitrix\Im\V2\Common\RegistryEntryImplementation;
19 use FieldAccessImplementation;
20 use ActiveRecordImplementation;
21 use RegistryEntryImplementation;
23 protected ?
int $id =
null;
46 return $link->setEntity(
$entity)->setMessageInfo($message);
62 return $data->mergeFromEntity($this->
getEntity(), $excludedList);
80 return $this->
getId();
85 $this->
setId($primaryId);
185 'field' =>
'messageId',
186 'set' =>
'setMessageId',
187 'get' =>
'getMessageId',
191 'set' =>
'setChatId',
192 'get' =>
'getChatId',
195 'field' =>
'dateCreate',
196 'set' =>
'setDateCreate',
197 'get' =>
'getDateCreate',
200 'field' =>
'authorId',
201 'set' =>
'setAuthorId',
202 'get' =>
'getAuthorId',
204 static::getEntityIdFieldName() => [
205 'field' =>
'entityId',
206 'set' =>
'setEntityId',
207 'get' =>
'getEntityId',
setPrimaryId(int $primaryId)
setEntityId(?int $entityId)
static getEntityClassName()
toRestFormat(array $option=[])
setMessageId(?int $messageId)
setMessageInfo(Message $message)
getPopupData(array $excludedList=[])
setEntity(RestEntity $entity)
static getEntityIdFieldName()
setDateCreate(DateTime $dateCreate)
static linkEntityToMessage(RestEntity $entity, Message $message)
setAuthorId(int $authorId)
static mirrorDataEntityFields()
static getRestEntityName()