Bitrix Orm: Install, Source and Security | FunnelSlayer

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-skills

Install 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-orm

Skill instructions

Bitrix D7 ORM

Baseline: main 23.0+ · Verified: main 26.800.0

TaskRead
Tablet, field types, ArrayField, data modifiers, relations, UFrules/tablet-map.md
query(), filters, runtime fields, DISTINCT, paginationrules/reading.md
Collections: save, remove, relations, find/filter, keysrules/collections.md
add/update/delete, batch, atomic increments, merge, deleteByFilterrules/writing.md
ORM events, query cache, user input in queriesrules/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(), never new Query(XxxTable::getEntity()): query() honours the tablet's getQueryClass().
  • add/update/delete/save() run events and cleanCache(). MergeTrait::merge() and deleteByFilter() 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, runtime or ExpressionField without a whitelist.

Files included

  • rules/collections.md
  • rules/events-cache-security.md
  • rules/reading.md
  • rules/tablet-map.md
  • rules/writing.md
  • SKILL.md

More skills