/** * @return string */ public static function resolveValueRightSideLikePartByOperatorType($operatorType) { assert('is_string($operatorType)'); $validOperator = true; if (YII_DEBUG) { $validOperator = SQLOperatorUtil::isValidOperatorType($operatorType); } if ($validOperator && in_array($operatorType, array('startsWith', 'doesNotStartsWith', 'contains', 'doesNotContains'))) { return '%'; } }