mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-3007: ManyToMany does not respect all column attributes for the jointable #3733
Reference in New Issue
Block a user
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?
Originally created by @doctrinebot on GitHub (Mar 3, 2014).
Originally assigned to: @ostrolucky on GitHub.
Jira issue originally created by user breiti:
Given following 2 entities:
It should create a table "user_role" with 2 columns which are CHAR(36).
But it ignores the Column-Attributes and creates a table "user_role" with 2 CHAR(255) columns.
This has various downsides:
** If using GUID-Type (see DBAL-423 with the changes from the linked ull request) and specify "length=36" and "fixed=true" on the Column-Annotation, no changes for the entity-tables itself are generated when running orm:schema-tool:update. However, there are still changes for the many-to-many-table generated (because internal "fixed" is false and length is unset) which represent the current state of the columns. These changes are always* generated.
@doctrinebot commented on GitHub (Sep 10, 2014):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-465] was assigned:
https://github.com/doctrine/dbal/pull/465
@ostrolucky commented on GitHub (Aug 5, 2018):
Due to various issues, support for DB-generated UUIDs has been dropped in Doctrine/DBAL 3.0. See https://github.com/doctrine/doctrine2/pull/7330 or https://github.com/doctrine/dbal/pull/3211. Hence, this issue is no longer relevant.