mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Foreign key referencing a Uuid id with custom type with the same length #6514
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 @ferriol on GitHub (Aug 6, 2020).
I'm defining
a Cart entity
and CartItem entity
Where uuid id is a Custom Type
This Doctrine translate to (I edited the real entities and sql to minimize the code)
and
I don't know why generates in CartItem: cart_id VARCHAR(255)
If in Cart is: id VARCHAR(36)
And what can I add/changein mapping to the set correct length of the cart_id FK column ?
I add the custom type for more details: