library/SDIS62/Db/Type/UUID.php
public function convertToDatabaseValue($value, Doctrine\DBAL\Platforms\AbstractPlatform $platform)
    {
        if ($value !== null)
        {
            Zend_Debug::Dump(pack('H*', str_replace('-', '', $value)));
            return pack('H*', str_replace('-', '', $value));
            // return "0x" . str_replace('-', '', $value);
        }
    }
public function convertToDatabaseValue($value, Doctrine\DBAL\Platforms\AbstractPlatform $platform)
    {
        if ($value !== null)
        {
            Zend_Debug::Dump(pack('H*', str_replace('-', '', $value)));
            return pack('H*', str_replace('-', '', $value));
            // return "0x" . str_replace('-', '', $value);
        }
    }
{@inheritdoc}