/
mikopbx
/
ModuleAmoCrm
Обзор
Документация
Войти
/
mikopbx
/
ModuleAmoCrm
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
master
Models/ModuleAmoUsers.php
61 строка
1 KB
apor
Добавил в ModuleAmoUsers колонку portalId. Работа с портал будет производиться только по данным, которые относятся к порталу.
28 июл 2023, 13:03
28 июл 2023, 13:03
3f4a687
Код
Авторство
О чём код?
<?php /** * Copyright © MIKO LLC - All Rights Reserved * Unauthorized copying of this file, via any medium is strictly prohibited * Proprietary and confidential * Written by Alexey Portnov, 2 2019 */ namespace Modules\ModuleAmoCrm\Models; use MikoPBX\Modules\Models\ModulesModelsBase; /** * Class ModuleAmoUsers * @package Modules\ModuleAmoCrm\Models * @Indexes( * [name='number', columns=['number'], type=''] * ) */ class ModuleAmoUsers extends ModulesModelsBase { /** * @Primary * @Identity * @Column(type="integer", nullable=false) */ public $id; /** * @Column(type="string", nullable=true) */ public $amoUserId; /** * @Column(type="string", nullable=true) */ public $number; /** * @Column(type="integer", default="1", nullable=true) */ public $enable = 1; /** * @Column(type="integer", nullable=true) */ public $portalId = 0; /** * @param $calledModelObject * @return void */ public static function getDynamicRelations(&$calledModelObject): void { } public function initialize(): void { $this->setSource('m_ModuleAmoUsers'); parent::initialize(); } }