Connection.php 437 B

123456789101112131415161718192021
  1. <?php
  2. namespace Doctrine\DBAL\Driver\DrizzlePDOMySql;
  3. use Doctrine\DBAL\Driver\PDOConnection;
  4. use Doctrine\DBAL\ParameterType;
  5. class Connection extends PDOConnection
  6. {
  7. /**
  8. * {@inheritdoc}
  9. */
  10. public function quote($value, $type = ParameterType::STRING)
  11. {
  12. if ($type === ParameterType::BOOLEAN) {
  13. return $value ? 'true' : 'false';
  14. }
  15. return parent::quote($value, $type);
  16. }
  17. }