Skip to content

Instantly share code, notes, and snippets.

View Stoakes's full-sized avatar
🇪🇺

Antoine Beyet Stoakes

🇪🇺
  • Toulouse, France
View GitHub Profile
@Stoakes
Stoakes / Doctrine.php
Created June 13, 2017 14:52 — forked from Sitebase/Doctrine.php
Custom doctrine type to store uuid's as binary(16) values in a MySQL database. Set the column type that you want to use as BINARY(16) in MySQL and your good to go.
\Doctrine\DBAL\Types\Type::addType('uuid', 'BuboBox\Doctrine2\DBAL\Types\UuidType');