Sitemap

Bitrix ORM Extension

1 min readOct 12, 2019

--

To begin with I would like to tell you that during Bitrix24 development many developers use Bitrix ORM implementation out from the box.
It is a quite convenient, fast and useful instrument.

However, there is a thing which you should always do if you want to use the ORM DataManager class. Describing table fields and relations are so typical, annoying especially if you have lots of different tables.

From my own perspective, I prefer to simplify that regular work. For these needs, I created the simple composer package where implemented an extension of native Bitrix ORM DataManager.

Get Vitalii Sestrenskyi’s stories in your inbox

Join Medium for free to get updates from this writer.

Therefore, developers can spend more time for implementing business logic in the system. The main idea is to simplify the realization of the method — getMap() in the DataManager class. For installation, you can use the composer and include dependencies in init.php file.

Install

Package caches the data so if you add new columns in the table do not remember to clean the cache

Use the composer:

composer require sestrenskyi/orm

More details with examples you can find on GitHub — https://github.com/VitaliiSestrenskyi/orm-extension

--

--

Vitalii Sestrenskyi
Vitalii Sestrenskyi

Written by Vitalii Sestrenskyi

Software Engineer(BX24/AWS/PHP/Go/Vue.js) London