<legend id='18rd6'><style id='18rd6'><dir id='18rd6'><q id='18rd6'></q></dir></style></legend>
  • <small id='18rd6'></small><noframes id='18rd6'>

        <bdo id='18rd6'></bdo><ul id='18rd6'></ul>
    1. <tfoot id='18rd6'></tfoot>

        <i id='18rd6'><tr id='18rd6'><dt id='18rd6'><q id='18rd6'><span id='18rd6'><b id='18rd6'><form id='18rd6'><ins id='18rd6'></ins><ul id='18rd6'></ul><sub id='18rd6'></sub></form><legend id='18rd6'></legend><bdo id='18rd6'><pre id='18rd6'><center id='18rd6'></center></pre></bdo></b><th id='18rd6'></th></span></q></dt></tr></i><div id='18rd6'><tfoot id='18rd6'></tfoot><dl id='18rd6'><fieldset id='18rd6'></fieldset></dl></div>
      1. Doctrine 2 如何在不调用实体构造函数的情况下检索实体?

        时间:2024-08-10
        <i id='3RZzz'><tr id='3RZzz'><dt id='3RZzz'><q id='3RZzz'><span id='3RZzz'><b id='3RZzz'><form id='3RZzz'><ins id='3RZzz'></ins><ul id='3RZzz'></ul><sub id='3RZzz'></sub></form><legend id='3RZzz'></legend><bdo id='3RZzz'><pre id='3RZzz'><center id='3RZzz'></center></pre></bdo></b><th id='3RZzz'></th></span></q></dt></tr></i><div id='3RZzz'><tfoot id='3RZzz'></tfoot><dl id='3RZzz'><fieldset id='3RZzz'></fieldset></dl></div>

          • <small id='3RZzz'></small><noframes id='3RZzz'>

              <bdo id='3RZzz'></bdo><ul id='3RZzz'></ul>

                <tbody id='3RZzz'></tbody>
              <tfoot id='3RZzz'></tfoot>

                <legend id='3RZzz'><style id='3RZzz'><dir id='3RZzz'><q id='3RZzz'></q></dir></style></legend>
                  本文介绍了Doctrine 2 如何在不调用实体构造函数的情况下检索实体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  有人知道这是怎么回事吗?

                  Does anyone know how this works?

                  推荐答案

                  这由 反序列化工作 对象.PHP 中的反序列化确实会阻止调用构造函数,因为已经构造了序列化对象.

                  This works by unserializing objects. Unserializing in PHP does prevent the constructor to be called as the serialized object has been already constructed.

                  $className = 'stdClass'; # set classname here
                  $serialized = sprintf('O:%d:"%s":0:{}', strlen($className), $className);
                  $object = unserialize($serialized);
                  

                  更多细节请看这篇文章:原则 2:把我的构造函数还给我

                  For more details please see this article: Doctrine 2: Give me my constructor back

                  这篇关于Doctrine 2 如何在不调用实体构造函数的情况下检索实体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:原则 2:在 DateTimeType.php 中对非对象 ... 调用成员函数 format() 下一篇:教义和未更新的关系

                  相关文章

                    • <bdo id='Nqpm4'></bdo><ul id='Nqpm4'></ul>
                    <tfoot id='Nqpm4'></tfoot>

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

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

                      <legend id='Nqpm4'><style id='Nqpm4'><dir id='Nqpm4'><q id='Nqpm4'></q></dir></style></legend>