You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: event handler BSON field names and explicit parameter syntax
Parser: read from Events (not EventHandlers), Type (not Event),
SendInputParameter (not PassEventObject) with fallbacks for both.
Writer: emit DomainModels$EntityEvent (not DomainModels$EventHandler),
Type (not Event), SendInputParameter (not PassEventObject).
Grammar: event handlers now support ($currentObject) to pass the entity
object, or () to skip it. DESCRIBE shows the parameter explicitly and
only outputs RAISE ERROR on BEFORE handlers.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/01-project/MDL_QUICK_REFERENCE.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ Modifies an existing entity without full replacement.
64
64
| Rename attribute |`ALTER ENTITY Module.Name RENAME OldName TO NewName;`||
65
65
| Add index |`ALTER ENTITY Module.Name ADD INDEX (Col1 [ASC\|DESC], ...);`||
66
66
| Drop index |`ALTER ENTITY Module.Name DROP INDEX (Col1, ...);`||
67
-
| Add event handler |`ALTER ENTITY Module.Name ADD EVENT HANDLER ON BEFORE COMMIT CALL Mod.MF [RAISE ERROR];`|Moments: BEFORE/AFTER, Events: CREATE/COMMIT/DELETE/ROLLBACK|
67
+
| Add event handler |`ALTER ENTITY Module.Name ADD EVENT HANDLER ON BEFORE COMMIT CALL Mod.MF($currentObject) [RAISE ERROR];`|`($currentObject)` or `()`, RAISE ERROR only on BEFORE|
68
68
| Drop event handler |`ALTER ENTITY Module.Name DROP EVENT HANDLER ON BEFORE COMMIT;`||
69
69
| Set documentation |`ALTER ENTITY Module.Name SET DOCUMENTATION 'text';`||
70
70
| Set position |`ALTER ENTITY Module.Name SET POSITION (100, 200);`| Canvas position |
0 commit comments