Last active
December 11, 2023 11:55
-
-
Save HueJack/96d02c872abd08c30e63b098ce0865de to your computer and use it in GitHub Desktop.
Битрикс: создание таблицы из ORM сущности
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Bitrix\Main\Application; | |
use Bitrix\Main\Entity\Base; | |
if (!Application::getConnection()->isTableExists(Base::getInstance('\Namespace\OrmNameTable')->getDBTableName())) { | |
Base::getInstance('\Namespace\OrmNameTable')->createDBTable(); | |
} |
Из кода не понятно откуда взялось Base (Bitrix\Main\Entity\Base).
Спасибо за замечание, поправил
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Из кода не понятно откуда взялось Base (Bitrix\Main\Entity\Base).