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 策略没有响应和保湿

      Zend Framework 2 - Hydrator strategy not responding and hydrating(Zend Framework 2 - Hydrator 策略没有响应和保湿)
    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 策略没有响应和保湿的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                Is PHP or PHP based web framework stateful or stateless?(PHP 或基于 PHP 的 Web 框架是有状态的还是无状态的?)
                How to parse django style template tags(如何解析 django 样式模板标签)
                What is a good setup for editing PHP in Emacs?(在 Emacs 中编辑 PHP 的好设置是什么?)
                How to check whether specified PID is currently running without invoking ps from PHP?(如何在不从 PHP 调用 ps 的情况下检查指定的 PID 当前是否正在运行?)
                What#39;s the difference between escapeshellarg and escapeshellcmd?(escapeshellarg 和escapeshellcmd 有什么区别?)
                php in background exec() function(php 后台 exec() 函数)
                  <tbody id='OWSIj'></tbody>
                <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>
                        • <small id='OWSIj'></small><noframes id='OWSIj'>