Ejemplo n.º 1
0
 protected static function bypassReadPermissionsOptimizationToSqlQueryBasedOnWhere($where)
 {
     $q = DatabaseCompatibilityUtil::getQuote();
     $builtTemplateType = static::BUILT_TYPE_BUILDER_TEMPLATE;
     $isNull = SQLOperatorUtil::resolveOperatorAndValueForNullOrEmpty('isNull');
     $expectedWhere = "({$q}emailtemplate{$q}.{$q}builttype{$q} = {$builtTemplateType}) and " . "({$q}emailtemplate{$q}.{$q}modelclassname{$q} {$isNull})";
     if ($where == $expectedWhere) {
         return true;
     }
     return parent::bypassReadPermissionsOptimizationToSqlQueryBasedOnWhere($where);
 }