Bitrix Orm
Published by bxmaximum in bitrix-framework-skills
Audit unavailable234 installs
What this skill does
D7 ORM — DataManager tablets, fields and relations, query()/ConditionTree, objects and collections, batch/merge/deleteByFilter writes, ORM events and cache. Use when designing entities or reading and writing data via ORM.
Add Bitrix Orm to your agent
Review the source and files first. When you are ready, copy the prompt instruction or use the CLI command supported by your environment.
Install with a prompt
Paste this into a compatible coding agent:
add this skill "bitrix-orm" from https://github.com/bxmaximum/bitrix-framework-skillsInstall with the CLI
Run this command in a controlled environment after reviewing the repository:
npx skills add https://github.com/bxmaximum/bitrix-framework-skills --skill bitrix-ormSkill instructions
Bitrix D7 ORM
Baseline: main 23.0+ · Verified: main 26.800.0
| Task | Read |
|---|---|
| Tablet, field types, ArrayField, data modifiers, relations, UF | rules/tablet-map.md |
query(), filters, runtime fields, DISTINCT, pagination | rules/reading.md |
| Collections: save, remove, relations, find/filter, keys | rules/collections.md |
| add/update/delete, batch, atomic increments, merge, deleteByFilter | rules/writing.md |
| ORM events, query cache, user input in queries | rules/events-cache-security.md |
Invariants
- Namespace
Bitrix\Main\ORM\*.Bitrix\Main\Entity\*is a legacy alias list (main/include/compatibility.php): don't write it in new code or mix both in one file. - Build queries with
XxxTable::query(), nevernew Query(XxxTable::getEntity()):query()honours the tablet'sgetQueryClass(). add/update/delete/save()run events andcleanCache().MergeTrait::merge()anddeleteByFilter()fire no events; raw SQL also leaves the cache stale.- A collection has no
delete();remove()only detaches in memory. - Never pass request data into
select,order,group,runtimeorExpressionFieldwithout a whitelist.
Files included
- rules/collections.md
- rules/events-cache-security.md
- rules/reading.md
- rules/tablet-map.md
- rules/writing.md
- SKILL.md

