feat(reference-auto) : add automatic reference generation for pieces

ModelType defines a formula with placeholders ({serie}{diametre}{type}).
ReferenceAutoGenerator resolves it from CustomFieldValues with trim+uppercase normalisation.
ReferenceAutoSubscriber (onFlush) recalculates on Piece/CFV insert/update/delete.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Matthieu
2026-03-26 17:58:53 +01:00
parent d568961eb3
commit 3f6ce153bb
7 changed files with 532 additions and 0 deletions

View File

@@ -64,3 +64,8 @@ when@test:
autowire: true
autoconfigure: true
public: true
App\Service\ReferenceAutoGenerator:
autowire: true
autoconfigure: true
public: true