mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Doctrine type inference for custom types #6775
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 @TristanPouliquen on GitHub (Jul 1, 2021).
Hello,
I'm trying to use the new inference for Doctrine configuration, and I had a question I didn't find an answer to easily.
Doctrine automatically infers the Column type from the PHP attribute type for default types (eg: int, string, Datetime...).
Is there a way to register new type mappings?
For example, we are using Ramsey\UUID with its Doctrine support, would there be a way to configure Doctrine to register automatically a
private Uuid $idcolumn to@Column(type="uuid_binary_ordered_time")?