<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>“Symfony中文教程”的评论</title>
	<atom:link href="http://www.newlifeclan.com/symfony/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://www.newlifeclan.com/symfony</link>
	<description>站在巨人肩膀上的phpweb框架</description>
	<lastBuildDate>Sun, 16 Sep 2018 07:12:18 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>napoleon对《symfony2实战入门信息录入6:文件上传》的评论</title>
		<link>http://www.newlifeclan.com/symfony/archives/247#comment-74</link>
		<dc:creator><![CDATA[napoleon]]></dc:creator>
		<pubDate>Sun, 16 Sep 2018 07:12:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.newlifeclan.com/symfony/?p=247#comment-74</guid>
		<description><![CDATA[你可以试试清除缓存，或者doctrine:schema:update –force
你也可以看看中文站关于这方面的文章
http://www.symfonychina.com/doc/current/doctrine/lifecycle_callbacks.html]]></description>
		<content:encoded><![CDATA[<p>你可以试试清除缓存，或者doctrine:schema:update –force<br />
你也可以看看中文站关于这方面的文章<br />
<a href="http://www.symfonychina.com/doc/current/doctrine/lifecycle_callbacks.html" rel="nofollow">http://www.symfonychina.com/doc/current/doctrine/lifecycle_callbacks.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>davedeng对《symfony2实战入门信息录入6:文件上传》的评论</title>
		<link>http://www.newlifeclan.com/symfony/archives/247#comment-73</link>
		<dc:creator><![CDATA[davedeng]]></dc:creator>
		<pubDate>Wed, 12 Sep 2018 11:19:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.newlifeclan.com/symfony/?p=247#comment-73</guid>
		<description><![CDATA[楼主，您好，我遇到了和leoric一样的问题？经过调试，我发现是因为 @ORM\PrePersist 这些事件没有生效，我用的是symfony2.8,现在还没解决，下面是我的简单的一个demo：

entity中部分代码：

&lt;?php
namespace Nlc\InformationBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
 * @ORM\Entity()
 * @ORM\HasLifecycleCallbacks()
 */
class Adminuser
{
        /**
         * @ORM\PrePersist
        */
       public function test(){
            dump(1);die;
        }
}

controller中部分代码：

getDoctrine()-&gt;getManager();
        $adminuser = new Adminuser();
        $adminuser-&gt;setUsername(&#039;dave&#039;);
        $adminuser-&gt;setPassword(&#039;123&#039;);
        $em-&gt;persist($adminuser);
        $em-&gt;flush();
        return new Response();
    }
}
希望前辈您看到后能回复我一下，谢谢！]]></description>
		<content:encoded><![CDATA[<p>楼主，您好，我遇到了和leoric一样的问题？经过调试，我发现是因为 @ORM\PrePersist 这些事件没有生效，我用的是symfony2.8,现在还没解决，下面是我的简单的一个demo：</p>
<p>entity中部分代码：</p>
<p>&lt;?php<br />
namespace Nlc\InformationBundle\Entity;<br />
use Doctrine\ORM\Mapping as ORM;<br />
/**<br />
 * @ORM\Entity()<br />
 * @ORM\HasLifecycleCallbacks()<br />
 */<br />
class Adminuser<br />
{<br />
        /**<br />
         * @ORM\PrePersist<br />
        */<br />
       public function test(){<br />
            dump(1);die;<br />
        }<br />
}</p>
<p>controller中部分代码：</p>
<p>getDoctrine()-&gt;getManager();<br />
        $adminuser = new Adminuser();<br />
        $adminuser-&gt;setUsername(&#8216;dave&#8217;);<br />
        $adminuser-&gt;setPassword(&#8216;123&#8242;);<br />
        $em-&gt;persist($adminuser);<br />
        $em-&gt;flush();<br />
        return new Response();<br />
    }<br />
}<br />
希望前辈您看到后能回复我一下，谢谢！</p>
]]></content:encoded>
	</item>
	<item>
		<title>h77064754对《让ueditor编辑器作为formtype直接引用》的评论</title>
		<link>http://www.newlifeclan.com/symfony/archives/573#comment-72</link>
		<dc:creator><![CDATA[h77064754]]></dc:creator>
		<pubDate>Mon, 25 Dec 2017 13:00:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.newlifeclan.com/symfony/?p=573#comment-72</guid>
		<description><![CDATA[您好，请问我想把htmlpurifier和ueditor结合起来一起用，要怎么实现呢]]></description>
		<content:encoded><![CDATA[<p>您好，请问我想把htmlpurifier和ueditor结合起来一起用，要怎么实现呢</p>
]]></content:encoded>
	</item>
	<item>
		<title>napoleon对《Symfony消息提醒Flash Message》的评论</title>
		<link>http://www.newlifeclan.com/symfony/archives/1096#comment-63</link>
		<dc:creator><![CDATA[napoleon]]></dc:creator>
		<pubDate>Wed, 23 Nov 2016 10:51:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.newlifeclan.com/symfony/?p=1096#comment-63</guid>
		<description><![CDATA[你应该学习，现在最新版本的symfony3]]></description>
		<content:encoded><![CDATA[<p>你应该学习，现在最新版本的symfony3</p>
]]></content:encoded>
	</item>
	<item>
		<title>snail对《Symfony消息提醒Flash Message》的评论</title>
		<link>http://www.newlifeclan.com/symfony/archives/1096#comment-62</link>
		<dc:creator><![CDATA[snail]]></dc:creator>
		<pubDate>Wed, 23 Nov 2016 00:38:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.newlifeclan.com/symfony/?p=1096#comment-62</guid>
		<description><![CDATA[大神求教我symfony2 贼难]]></description>
		<content:encoded><![CDATA[<p>大神求教我symfony2 贼难</p>
]]></content:encoded>
	</item>
	<item>
		<title>muscleape对《symfony2实战入门信息录入6:文件上传》的评论</title>
		<link>http://www.newlifeclan.com/symfony/archives/247#comment-61</link>
		<dc:creator><![CDATA[muscleape]]></dc:creator>
		<pubDate>Tue, 11 Oct 2016 01:14:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.newlifeclan.com/symfony/?p=247#comment-61</guid>
		<description><![CDATA[果然，需要更新一下。执行php app/console doctrine:schema:update --force页面就正常了。]]></description>
		<content:encoded><![CDATA[<p>果然，需要更新一下。执行php app/console doctrine:schema:update &#8211;force页面就正常了。</p>
]]></content:encoded>
	</item>
	<item>
		<title>napoleon对《第六章：symfony2路由器》的评论</title>
		<link>http://www.newlifeclan.com/symfony/archives/228#comment-60</link>
		<dc:creator><![CDATA[napoleon]]></dc:creator>
		<pubDate>Wed, 07 Sep 2016 14:14:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.newlifeclan.com/symfony/?p=228#comment-60</guid>
		<description><![CDATA[这里的文档如果不能满足你,你可以来到我们的 http://www.symfonychina.com 看看是否有你需要的。]]></description>
		<content:encoded><![CDATA[<p>这里的文档如果不能满足你,你可以来到我们的 <a href="http://www.symfonychina.com" rel="nofollow">http://www.symfonychina.com</a> 看看是否有你需要的。</p>
]]></content:encoded>
	</item>
	<item>
		<title>sunbirder对《第六章：symfony2路由器》的评论</title>
		<link>http://www.newlifeclan.com/symfony/archives/228#comment-59</link>
		<dc:creator><![CDATA[sunbirder]]></dc:creator>
		<pubDate>Wed, 07 Sep 2016 13:35:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.newlifeclan.com/symfony/?p=228#comment-59</guid>
		<description><![CDATA[怎么没有九,十,十一?]]></description>
		<content:encoded><![CDATA[<p>怎么没有九,十,十一?</p>
]]></content:encoded>
	</item>
	<item>
		<title>xiximo对《基于symfony-components新品开源CMS系统Pagekit》的评论</title>
		<link>http://www.newlifeclan.com/symfony/archives/958#comment-58</link>
		<dc:creator><![CDATA[xiximo]]></dc:creator>
		<pubDate>Mon, 02 May 2016 08:17:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.newlifeclan.com/symfony/?p=958#comment-58</guid>
		<description><![CDATA[呵呵，最新刚部署了一个看看，感觉只是用到了部分symfony组件]]></description>
		<content:encoded><![CDATA[<p>呵呵，最新刚部署了一个看看，感觉只是用到了部分symfony组件</p>
]]></content:encoded>
	</item>
	<item>
		<title>【总结】Symfony登陆搭建 &#8211; evan xia对《第十三章：安全security》的评论</title>
		<link>http://www.newlifeclan.com/symfony/archives/242#comment-57</link>
		<dc:creator><![CDATA[【总结】Symfony登陆搭建 &#8211; evan xia]]></dc:creator>
		<pubDate>Fri, 29 Apr 2016 11:57:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.newlifeclan.com/symfony/?p=242#comment-57</guid>
		<description><![CDATA[[&#8230;] &#160;&#160;&#160;&#160;1、security中文介绍：http://www.newlifeclan.com/symfony/archives/242 [&#8230;]]]></description>
		<content:encoded><![CDATA[<p>[&#8230;] &nbsp;&nbsp;&nbsp;&nbsp;1、security中文介绍：http://www.newlifeclan.com/symfony/archives/242 [&#8230;]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
