vendor/realestateconz/mssql-bundle/Realestate/MssqlBundle/RealestateMssqlBundle.php line 17

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Symfony framework.
  4.  *
  5.  * (c) Fabien Potencier <fabien@symfony.com>
  6.  *
  7.  * This source file is subject to the MIT license that is bundled
  8.  * with this source code in the file LICENSE.
  9.  */
  10. namespace Realestate\MssqlBundle;
  11. use Symfony\Component\HttpKernel\Bundle\Bundle;
  12. use Doctrine\DBAL\Types\Type;
  13. class RealestateMssqlBundle extends Bundle
  14. {
  15.     public function boot()
  16.     {
  17.         // Register custom data types
  18.         if(!Type::hasType('uniqueidentifier')) {
  19.             Type::addType('uniqueidentifier''Realestate\MssqlBundle\Types\UniqueidentifierType');
  20.         }
  21.         Type::overrideType('date''Realestate\MssqlBundle\Types\DateType');        
  22.         Type::overrideType('datetime''Realestate\MssqlBundle\Types\DateTimeType');
  23.     }
  24. }