orm
orm copied to clipboard
Feature Request: Add new event \Doctrine\ORM\Tools\ToolEvents::postGatherRelationsSql, allow to custom relationship table.
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.