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
Add Style::realName so scope names convert to tables at the SQL boundary
The mapper DSL used scope/method names verbatim as DB table names, forcing
PHP-side code to submit to DB conventions (snake_case, plural) — the very
thing Styles exist to prevent. The one identifier a Style was never consulted
for was the table name.
Add `Stylable::realName(scope): table`, the missing symmetric partner of
`styledName(scope): class`, completing the quadrant (styled*->PHP, real*->DB;
*Name->entity, *Property->field). Standard delegates it to realProperty;
remoteIdentifier and composed are now expressed through realProperty/realName
so they convert their inputs too. InMemoryMapper routes table lookups through
realName while keeping scope names as aliases.
Because realName is the single point of difference for pluralized tables,
Plural collapses from three overrides to one (realName); class resolution,
foreign keys, and junction names are now inherited from Standard unchanged.
All edits are no-ops on existing snake/plural names; scope-name flips live in
the consuming projects.
0 commit comments