Comments (4)
I may have just answered my own question if you indicate you're relying on GUID.
http://doctrine-dbal.readthedocs.org/en/latest/reference/types.html#guid
Thoughts?
from uuid-doctrine.
I might be wrong, but I think the PostgreSQL internal type of UUID is used to allow the database to generate the UUIDs for you. I've never used it, so let me know if that's not the case. And Doctrine's GUID type allows Doctrine to set the database engine's field to its internal identifier (whether it's UUID, GUID, etc.). My Doctrine and ramsey/uuid connector simply allows UUIDs in the database to be mapped into Ramsey\Uuid objects.
I'm not sure that answers your question. I'll need to look into Doctrine's GUID and PostgreSQL's UUID type a bit more.
from uuid-doctrine.
I think that they map even in MySQL appropriately and then to a char(36) when/where there's not a native type. At least that's what I feel I gleaned from the above linked documents!
Thanks for taking the time to answer!
from uuid-doctrine.
Indeed with PostgreSQL, the uuid
database type is already being used: https://github.com/doctrine/dbal/blob/v2.6.3/lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php#L956-L962
Important: This means that PostgreSQL users should use UuidType
instead of UuidBinaryType
.
from uuid-doctrine.
Related Issues (20)
- Not working with doctrine/orm 2.8 HOT 2
- Use VARBINARY(16) instead of BINARY HOT 2
- data type for validation with Doctrine HOT 2
- doctrine.yaml configuration issue HOT 1
- Type missmatch in generator with static PHP Mapping (LazyUuidFromString to property Uuid) HOT 3
- There is a bug in MariaDB 10.5.9, extremly slowing queris with UUID in binary form HOT 2
- uuid_binary_ordered_time not working with IN expression HOT 8
- Doctrine 3 compatibility HOT 1
- Imcompatible with the latest Doctrine 2.10 HOT 2
- doctrine.dbal.default_connection is set to 'default' and cannot be changed anymore HOT 2
- Deprecation notice after updating from Symfony 5.3 to 5.4 HOT 2
- Tag new release HOT 1
- Supportfor typed property. HOT 4
- Support other types of `EntityManagerInterface` too HOT 2
- Fetching metadata from an entity using the custom strategy is throwing an error. HOT 2
- Node of UUID is 0 HOT 1
- Additional usage of UUID v6/v7 for UuidBinaryOrderedTimeType HOT 7
- Converting my entities ids to uuids
- Tag a new release HOT 1
- Fetching association throws "Unknown parameter type, 116 given" exception HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uuid-doctrine.