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

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

                相关文档推荐

                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 的问题)
                  <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'>