LikeConditionBuilder.php 488 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * @link http://www.yiiframework.com/
  4. * @copyright Copyright (c) 2008 Yii Software LLC
  5. * @license http://www.yiiframework.com/license/
  6. */
  7. namespace yii\db\mssql\conditions;
  8. /**
  9. * {@inheritdoc}
  10. */
  11. class LikeConditionBuilder extends \yii\db\conditions\LikeConditionBuilder
  12. {
  13. /**
  14. * {@inheritdoc}
  15. */
  16. protected $escapingReplacements = [
  17. '%' => '[%]',
  18. '_' => '[_]',
  19. '[' => '[[]',
  20. ']' => '[]]',
  21. '\\' => '[\\]',
  22. ];
  23. }