Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
30 lines (24 sloc) 0.793 kb
<?php
/*
* This file is part of the Symfony framework.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Realestate\MssqlBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Doctrine\DBAL\Types\Type;
class RealestateMssqlBundle extends Bundle
{
public function boot()
{
// Register custom data types
if(!Type::hasType('uniqueidentifier')) {
Type::addType('uniqueidentifier', 'Realestate\MssqlBundle\Types\UniqueidentifierType');
}
Type::overrideType('date', 'Realestate\MssqlBundle\Types\DateType');
Type::overrideType('datetime', 'Realestate\MssqlBundle\Types\DateTimeType');
}
}
Jump to Line
Something went wrong with that request. Please try again.