<i id='5wsZX'><tr id='5wsZX'><dt id='5wsZX'><q id='5wsZX'><span id='5wsZX'><b id='5wsZX'><form id='5wsZX'><ins id='5wsZX'></ins><ul id='5wsZX'></ul><sub id='5wsZX'></sub></form><legend id='5wsZX'></legend><bdo id='5wsZX'><pre id='5wsZX'><center id='5wsZX'></center></pre></bdo></b><th id='5wsZX'></th></span></q></dt></tr></i><div id='5wsZX'><tfoot id='5wsZX'></tfoot><dl id='5wsZX'><fieldset id='5wsZX'></fieldset></dl></div>
  1. <tfoot id='5wsZX'></tfoot>

      <small id='5wsZX'></small><noframes id='5wsZX'>

      <legend id='5wsZX'><style id='5wsZX'><dir id='5wsZX'><q id='5wsZX'></q></dir></style></legend>
      • <bdo id='5wsZX'></bdo><ul id='5wsZX'></ul>
    1. 如何在 Doctrine 查询中指定空值作为过滤器?

      How to specify null value as filter in a Doctrine query?(如何在 Doctrine 查询中指定空值作为过滤器?)
        <i id='azUxO'><tr id='azUxO'><dt id='azUxO'><q id='azUxO'><span id='azUxO'><b id='azUxO'><form id='azUxO'><ins id='azUxO'></ins><ul id='azUxO'></ul><sub id='azUxO'></sub></form><legend id='azUxO'></legend><bdo id='azUxO'><pre id='azUxO'><center id='azUxO'></center></pre></bdo></b><th id='azUxO'></th></span></q></dt></tr></i><div id='azUxO'><tfoot id='azUxO'></tfoot><dl id='azUxO'><fieldset id='azUxO'></fieldset></dl></div>
          <tbody id='azUxO'></tbody>

            <bdo id='azUxO'></bdo><ul id='azUxO'></ul>
              1. <legend id='azUxO'><style id='azUxO'><dir id='azUxO'><q id='azUxO'></q></dir></style></legend>
                <tfoot id='azUxO'></tfoot>

                <small id='azUxO'></small><noframes id='azUxO'>

              2. 本文介绍了如何在 Doctrine 查询中指定空值作为过滤器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我在 Zend 中使用 Doctrine 1.1.我正在尝试编写一个查询,该查询将返回在某一列中具有空值的记录.

                I am using Doctrine 1.1 in Zend. I am trying to write a query that will return records that have a null value in a certain column.

                    $q = Doctrine_Query::create()
                    ->select('a.*')
                    ->from('RuleSet a')
                    ->where('a.vertical_id = ?', null);
                
                    $ruleset_names_result = $q->execute(array(), Doctrine::HYDRATE_ARRAY);
                

                我在规则集表中有三个记录,它们在 vertical_id 列中有一个 NULL 值,但查询没有找到这些记录.

                I have three records in the ruleset table which have a NULL value in the vertical_id column yet the query doest not find these.

                感谢您的帮助.

                席德.

                推荐答案

                我在 symfony 中使用学说,我就是这样做的:

                I use doctrine with symfony, and this is how I do:

                where('a.vertical_id is NULL');

                这篇关于如何在 Doctrine 查询中指定空值作为过滤器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
              3. <legend id='O520X'><style id='O520X'><dir id='O520X'><q id='O520X'></q></dir></style></legend>

                  <tbody id='O520X'></tbody>
                • <bdo id='O520X'></bdo><ul id='O520X'></ul>

                  <small id='O520X'></small><noframes id='O520X'>

                      <i id='O520X'><tr id='O520X'><dt id='O520X'><q id='O520X'><span id='O520X'><b id='O520X'><form id='O520X'><ins id='O520X'></ins><ul id='O520X'></ul><sub id='O520X'></sub></form><legend id='O520X'></legend><bdo id='O520X'><pre id='O520X'><center id='O520X'></center></pre></bdo></b><th id='O520X'></th></span></q></dt></tr></i><div id='O520X'><tfoot id='O520X'></tfoot><dl id='O520X'><fieldset id='O520X'></fieldset></dl></div>
                        • <tfoot id='O520X'></tfoot>