• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/RelationCollection.php
  • Класс: BitrixImV2RelationCollection
  • Вызов: RelationCollection::offsetSet
public function offsetSet($key, $value): void
{
	/** @var Relation $value */
	parent::offsetSet($key, $value);

	if ($value->getUserId() !== null && $value->getChatId() !== null)
	{
		$this->relationsByUserId[$value->getChatId()][$value->getUserId()] = $value;
		if ($value->getStartId() !== null)
		{
			static::$startIdStaticCache[$value->getChatId()][$value->getUserId()] = $value->getStartId();
		}
	}
}