PHPackages                             webarchitect609/bitrix-orm-tools - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. webarchitect609/bitrix-orm-tools

ActiveLibrary

webarchitect609/bitrix-orm-tools
================================

Bitrix orm table class tools.

2.6.1(1y ago)33.4k↓100%11MITPHPPHP ^7.2 || ^8.0

Since Apr 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/webarchitect609/bitrix-orm-tools)[ Packagist](https://packagist.org/packages/webarchitect609/bitrix-orm-tools)[ RSS](/packages/webarchitect609-bitrix-orm-tools/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (8)Versions (14)Used By (1)

Битрикс ORM инструменты
=======================

[](#битрикс-orm-инструменты)

[![Travis Build Status](https://camo.githubusercontent.com/63913bc40539547ee7b08713eeb11c0ddc08bc58f9b48f902ee15d86e9b0af1f/68747470733a2f2f7472617669732d63692e636f6d2f7765626172636869746563743630392f6269747269782d6f726d2d746f6f6c732e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/webarchitect609/bitrix-orm-tools)[![Latest version](https://camo.githubusercontent.com/7062f35efe5e3e2e23e18559a9ebfaa3a2f332c235d9943b2c09787c6465e696/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f7765626172636869746563743630392f6269747269782d6f726d2d746f6f6c733f736f72743d73656d766572)](https://github.com/webarchitect609/bitrix-orm-tools/releases)[![Downloads](https://camo.githubusercontent.com/6d74957eead1f5f0e4d5ee381fb7527e042d4c414ffa53c339a499f0d2726077/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7765626172636869746563743630392f6269747269782d6f726d2d746f6f6c73)](https://packagist.org/packages/webarchitect609/bitrix-orm-tools)[![PHP version](https://camo.githubusercontent.com/670f04bd6ce33fd5fc8070d825660d1f1118b2960bc9e3d1e6e676e51bb05a18/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7765626172636869746563743630392f6269747269782d6f726d2d746f6f6c73)](https://www.php.net/supported-versions.php)[![License](https://camo.githubusercontent.com/da4d4e3fa97081b3f6181bb48d35d1d9b272cb39aaffd405091bdd28cfef0fda/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7765626172636869746563743630392f6269747269782d6f726d2d746f6f6c73)](LICENSE.md)[![More stuff from me](https://camo.githubusercontent.com/7651d28f6d80c08aa384a801bddbacf7c07ce0d4420108e98b494e7cfbf41e6e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d7765626172636869746563743630392d626c756576696f6c6574)](https://packagist.org/packages/webarchitect609/)

**Пожалуйста, будьте осторожны:** это пока нестабильная версия без покрытия Unit-тестами!

Вспомогательные инструменты для работы с Битрикс D7 ORM.

Возможности
-----------

[](#возможности)

- Генерация описания полей таблицы хранения немножественных свойств элемента инфоблока.

Установка
---------

[](#установка)

1. Установить через [composer](https://getcomposer.org/):

    ```
    composer require webarchitect609/bitrix-orm-tools
    ```
2. Добавить подключение [автозагрузчика](https://getcomposer.org/doc/01-basic-usage.md#autoloading) composer в самое начало [файла init.php](https://dev.1c-bitrix.ru/learning/course/index.php?COURSE_ID=43&LESSON_ID=2916&LESSON_PATH=3913.4776.2916)

    ```
    require_once $_SERVER['DOCUMENT_ROOT'] . '/../../vendor/autoload.php';
    ```

Использование
-------------

[](#использование)

Чтобы воспользоваться функциональностью генерации описания немножественных свойств элемента инфоблока:

- отнаследоваться от `\WebArch\BitrixOrmTools\Iblock\Property\DynamicSinglePropertiesTable` и объявить метод `getIblockId()`;
- при объявлении `Bitrix\Main\Entity\ReferenceField` (или `Bitrix\Main\ORM\Fields\Relations\Reference`) воспользоваться созданным классом;

```
use Bitrix\Iblock\ElementTable;
use Bitrix\Main\Entity\ReferenceField;
use Bitrix\Main\ORM\Query\Join;
use WebArch\BitrixOrmTools\Iblock\Property\DynamicSinglePropertiesTable;

class NewsSinglePropTable extends DynamicSinglePropertiesTable
{
    public static function getIblockId(): int
    {
        return 123;
    }
}

ElementTable::query()
            ->registerRuntimeField(
                new ReferenceField(
                    'NEWS_PROP',
                    NewsSinglePropTable::class,
                    Join::on('this.ID', 'ref.IBLOCK_ELEMENT_ID'),
                    ['join_type' => 'INNER']
                )
            );
```

Известные особенности
---------------------

[](#известные-особенности)

### Необходимость описывать конверторы для всех свойств

[](#необходимость-описывать-конверторы-для-всех-свойств)

Если используются пользовательские свойства элемента инфоблока, может возникать ошибка

```
Unsupported property type `S` with user type `Vendor\Package\NutritionValueProperty`

```

Можно дописать необходимый конвертор и вернуть его, переопределив статический метод `\WebArch\BitrixOrmTools\Iblock\Property\DynamicSinglePropertiesTable::getConverterList()` и добавив к уже существующему списку конверторов.

Другой вариант - включить игнорирование таких ошибок при помощи метода `\WebArch\BitrixOrmTools\Iblock\Property\DynamicSinglePropertiesTable::ignoreUnsupportedPropertyType()`

### Ошибка "Class \\WebArch\\BitrixOrmTools\\Field\\TimeField not found"

[](#ошибка-class-webarchbitrixormtoolsfieldtimefield-not-found)

1. Обновить `webarchitect609/bitrix-user-type >= 0.9.0`
2. Предпочтительнее заменить в клиентском коде `\WebArch\BitrixOrmTools\Field\TimeField` на `\WebArch\BitrixUserPropertyType\Field\TimeField`. Временное решение: в `init.php` после подключения `vendor/autoload.php` активировать скрипт установки алиаса `vendor/webarchitect609/bitrix-user-type/src/inc/aliases.php````
    require_once 'vendor/webarchitect609/bitrix-user-type/src/inc/aliases.php';
    ```

Лицензия и информация об авторе
-------------------------------

[](#лицензия-и-информация-об-авторе)

[BSD-3-Clause](LICENSE.md)

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~162 days

Recently: every ~91 days

Total

13

Last Release

613d ago

Major Versions

1.0.1 → 2.0.02020-06-04

PHP version history (3 changes)1.0.0PHP ^7.0

2.0.0PHP ^7.2

2.5.1PHP ^7.2 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9f9a6e3ee8c76415a66949c630cd1281bfb6a232a5648b2410574fb6e1e09b65?d=identicon)[webarchitect609](/maintainers/webarchitect609)

---

Top Contributors

[![webarchitect609](https://avatars.githubusercontent.com/u/11293610?v=4)](https://github.com/webarchitect609 "webarchitect609 (14 commits)")

---

Tags

bitrixbitrix-d7bitrix-ormcomposercomposer-libraryphp

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/webarchitect609-bitrix-orm-tools/health.svg)

```
[![Health](https://phpackages.com/badges/webarchitect609-bitrix-orm-tools/health.svg)](https://phpackages.com/packages/webarchitect609-bitrix-orm-tools)
```

###  Alternatives

[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k235.4M9.6k](/packages/symfony-framework-bundle)[laravel/pennant

A simple, lightweight library for managing feature flags.

57311.1M53](/packages/laravel-pennant)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19462.3M1.3k](/packages/drupal-core)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[coenjacobs/mozart

Composes all dependencies as a package inside a WordPress plugin

4723.6M20](/packages/coenjacobs-mozart)[horstoeko/zugferd

A library for creating and reading european electronic invoices

4044.3M17](/packages/horstoeko-zugferd)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
