orm icon indicating copy to clipboard operation
orm copied to clipboard

Feature Request: Add new event \Doctrine\ORM\Tools\ToolEvents::postGatherRelationsSql, allow to custom relationship table.

Open ywisax opened this issue 9 months ago • 0 comments

Feature Request

Q A
New Feature yes
RFC no
BC Break no

Summary

Current version, doctrine/orm will generate a relationship table contains only two column(just like user_id, role_id). It is hard for developer to extends this table, like add create time column, create user id and so on. Add new \Doctrine\ORM\Tools\ToolEvents::postGatherRelationsSql and trigger in \Doctrine\ORM\Tools\SchemaTool::gatherRelationsSql, then developer can write custom logic for they owned.

ywisax avatar May 15 '24 15:05 ywisax