Port domain model: Scenario, Bucket, Stream entities #31
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Rebuild the domain on Doctrine + API Platform.
symfony/uid(replaces the oldHasUuidtrait); UUID exposed as the API id, integer PK internal.Exit: entities migrate; CRUD works via
/api; invariants enforced; tests green.Done — domain model ported to Doctrine + API Platform. 86 tests / 252 assertions green, PHPStan + CS clean. 10 commits (
59807d8..bebc042).Exit criteria
/api—GetCollection/Get/Poston all three, gatedis_granted('ROLE_USER'), JSON-LD.propertyPath).Conscious deviations from the ticket wording (decisions, not gaps):
UuidV7#[ORM\Id](noGeneratedValue), generated in constructor — matches theUserentity and idiomatic Doctrine. The "int PK + exposed uuid" wording reflected the old LaravelHasUuidroute-key idiom; API Platform auto-exposes/api/scenarios/{uuid}with zero wiring.BufferOnlyForFixedLimitvalidator.Scenario.distribution_mode(even/priority) — no separate phantom column (old #7/#8 reduce to this).Operations are read+create only (
GetCollection/Get/Post); Put/Patch/Delete deliberately deferred.