Affects Version/s: None
Fix Version/s: None
Component/s: Mapping Drivers
Security Level: All
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:
- It's unusable when using MyISAM, because of limited index size. (CREATE TABLE fails, see
- If using GUID-Type (see
DBAL-423with 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.