1. <small id='Pct3s'></small><noframes id='Pct3s'>

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

    <tfoot id='Pct3s'></tfoot>
  2. <legend id='Pct3s'><style id='Pct3s'><dir id='Pct3s'><q id='Pct3s'></q></dir></style></legend>

      Zend Framework 2 - Hydrator 策略没有响应和保湿

      时间:2023-08-18
    1. <tfoot id='A97nm'></tfoot>

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

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

            <tbody id='A97nm'></tbody>

              <bdo id='A97nm'></bdo><ul id='A97nm'></ul>

                本文介绍了Zend Framework 2 - Hydrator 策略没有响应和保湿的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我基本上实施了这个策略.

                主要区别是(我猜)我使用 Doctrine2.

                The main difference is (I guess) that I use Doctrine2.

                构造函数类被调用(打印测试回显)但两个函数extract()hydrate() 没有被调用.

                The constructor class is called (a test echo is printed) but the two functions extract() and hydrate() are not.

                我添加的策略如下:

                $hydrator = new DoctrineEntity($entityManager);
                $hydrator->getHydrator()->addStrategy('my_attribute', new MyHydrationStrategy());
                $form->setHydrator($hydrator);
                

                此处发布了一个类似的问题.

                也许问题在于我如何添加此策略.但老实说我不知道...

                Maybe the problem is in the way how I add this strategy. But I honestly don't know...

                如果有人能给我提示我做错了什么就好了.

                Would be great if somebody could give me a hint what I'm doing wrong.

                推荐答案

                请参考这篇文章,以获得更简洁、更合适的解决方案!

                Please refer to this post, for a cleaner and more appropriate solution!

                Zend 框架 2 - Hydrator教义关系的策略不起作用

                这篇关于Zend Framework 2 - Hydrator 策略没有响应和保湿的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:使用 preRemove/postRemove 事件获取哪些查询可以执行,哪些不能执行 下一篇:学说 dbal 查询构建器作为准备好的语句

                相关文章

                <tfoot id='OWSIj'></tfoot>

                    <i id='OWSIj'><tr id='OWSIj'><dt id='OWSIj'><q id='OWSIj'><span id='OWSIj'><b id='OWSIj'><form id='OWSIj'><ins id='OWSIj'></ins><ul id='OWSIj'></ul><sub id='OWSIj'></sub></form><legend id='OWSIj'></legend><bdo id='OWSIj'><pre id='OWSIj'><center id='OWSIj'></center></pre></bdo></b><th id='OWSIj'></th></span></q></dt></tr></i><div id='OWSIj'><tfoot id='OWSIj'></tfoot><dl id='OWSIj'><fieldset id='OWSIj'></fieldset></dl></div>
                    <legend id='OWSIj'><style id='OWSIj'><dir id='OWSIj'><q id='OWSIj'></q></dir></style></legend>
                    • <bdo id='OWSIj'></bdo><ul id='OWSIj'></ul>
                  1. <small id='OWSIj'></small><noframes id='OWSIj'>