public function __construct($field, $value, $format = self::CONTAINS, $dqlAlias = null) { $formattedValue = $this->formatValue($format, $value); parent::__construct(self::LIKE, $field, $formattedValue, $dqlAlias); }