<?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>Comments on: Improved Plugin for Model Validation: sfPropelValidatePlugin</title>
	<atom:link href="http://robrosenbaum.com/php/improved-plugin-for-model-validation-sfpropelvalidateplugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://robrosenbaum.com/php/improved-plugin-for-model-validation-sfpropelvalidateplugin/</link>
	<description>PHP, Symfony, and Other Web Things</description>
	<lastBuildDate>Wed, 24 Feb 2010 08:00:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: lekin</title>
		<link>http://robrosenbaum.com/php/improved-plugin-for-model-validation-sfpropelvalidateplugin/comment-page-1/#comment-323</link>
		<dc:creator>lekin</dc:creator>
		<pubDate>Mon, 01 Sep 2008 16:21:28 +0000</pubDate>
		<guid isPermaLink="false">http://robrosenbaum.com/symfony/improved-plugin-for-model-validation-sfpropelvalidateplugin/#comment-323</guid>
		<description>hi!

I was interested in using your plugin but it appears not to be available on the symfony plugin page.

The old one using propel behaviours still exists but what about its stability? Is it ok for using in a production environment?

By the way, the plugin is in wait for you to claim it ;)
http://www.symfony-project.org/plugins/sfPropelValidateBehaviorPlugin

Thanks!
Bertrand.</description>
		<content:encoded><![CDATA[<p>hi!</p>
<p>I was interested in using your plugin but it appears not to be available on the symfony plugin page.</p>
<p>The old one using propel behaviours still exists but what about its stability? Is it ok for using in a production environment?</p>
<p>By the way, the plugin is in wait for you to claim it <img src='http://robrosenbaum.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> <br />
<a href="http://www.symfony-project.org/plugins/sfPropelValidateBehaviorPlugin" rel="nofollow">http://www.symfony-project.org/plugins/sfPropelValidateBehaviorPlugin</a></p>
<p>Thanks!<br />
Bertrand.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pdaether</title>
		<link>http://robrosenbaum.com/php/improved-plugin-for-model-validation-sfpropelvalidateplugin/comment-page-1/#comment-303</link>
		<dc:creator>pdaether</dc:creator>
		<pubDate>Thu, 03 Apr 2008 15:43:50 +0000</pubDate>
		<guid isPermaLink="false">http://robrosenbaum.com/symfony/improved-plugin-for-model-validation-sfpropelvalidateplugin/#comment-303</guid>
		<description>Great Plugin!

But is it possible to set the Propel builders only for specific models - for example in the schema files?
Or is the behavior version still available?

I had to add model-based validation only for a couple of models.

Thanks!
Patrick</description>
		<content:encoded><![CDATA[<p>Great Plugin!</p>
<p>But is it possible to set the Propel builders only for specific models &#8211; for example in the schema files?<br />
Or is the behavior version still available?</p>
<p>I had to add model-based validation only for a couple of models.</p>
<p>Thanks!<br />
Patrick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lucas</title>
		<link>http://robrosenbaum.com/php/improved-plugin-for-model-validation-sfpropelvalidateplugin/comment-page-1/#comment-301</link>
		<dc:creator>Lucas</dc:creator>
		<pubDate>Tue, 18 Mar 2008 18:06:24 +0000</pubDate>
		<guid isPermaLink="false">http://robrosenbaum.com/symfony/improved-plugin-for-model-validation-sfpropelvalidateplugin/#comment-301</guid>
		<description>PS: the modification will only work if propel behaviours is enabled at propel.ini</description>
		<content:encoded><![CDATA[<p>PS: the modification will only work if propel behaviours is enabled at propel.ini</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lucas</title>
		<link>http://robrosenbaum.com/php/improved-plugin-for-model-validation-sfpropelvalidateplugin/comment-page-1/#comment-73</link>
		<dc:creator>Lucas</dc:creator>
		<pubDate>Fri, 19 Oct 2007 14:06:30 +0000</pubDate>
		<guid isPermaLink="false">http://robrosenbaum.com/symfony/improved-plugin-for-model-validation-sfpropelvalidateplugin/#comment-73</guid>
		<description>Hi Nice plugin, i just made some modifications. 
Using: 
if (!$article-&gt;save()) {
  $this-&gt;forward(&#039;patient&#039;, &#039;edit&#039;);
}
sometimes does not returns true even if the validations succed, if you model has not been modified for ex, your post will always been forwarded. 

The solution i found was adding the following to sfValidateObjBuilder.php:

$updated = &#039;
    if(!$this-&gt;isModified()) return true;    
    &#039;;    
    $tmp = preg_replace(&#039;/(:save:pre.*?}.*?})/s&#039;, &#039;\1&#039;.$updated, $tmp, 1);

Cheers L</description>
		<content:encoded><![CDATA[<p>Hi Nice plugin, i just made some modifications.<br />
Using:<br />
if (!$article-&gt;save()) {<br />
  $this-&gt;forward(&#039;patient&#039;, &#039;edit&#039;);<br />
}<br />
sometimes does not returns true even if the validations succed, if you model has not been modified for ex, your post will always been forwarded. </p>
<p>The solution i found was adding the following to sfValidateObjBuilder.php:</p>
<p>$updated = &#039;<br />
    if(!$this-&gt;isModified()) return true;<br />
    &#039;;<br />
    $tmp = preg_replace(&#039;/(:save:pre.*?}.*?})/s&#039;, &#039;\1&#039;.$updated, $tmp, 1);</p>
<p>Cheers L</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rpsblog.com &#187; A week of symfony #37 (10-&#38;gt;16 September 2007)</title>
		<link>http://robrosenbaum.com/php/improved-plugin-for-model-validation-sfpropelvalidateplugin/comment-page-1/#comment-57</link>
		<dc:creator>rpsblog.com &#187; A week of symfony #37 (10-&#38;gt;16 September 2007)</dc:creator>
		<pubDate>Sun, 16 Sep 2007 22:52:42 +0000</pubDate>
		<guid isPermaLink="false">http://robrosenbaum.com/symfony/improved-plugin-for-model-validation-sfpropelvalidateplugin/#comment-57</guid>
		<description>[...] Improved Plugin for Model Validation: sfPropelValidatePlugin [...]</description>
		<content:encoded><![CDATA[<p>[...] Improved Plugin for Model Validation: sfPropelValidatePlugin [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thierry Schellenbach</title>
		<link>http://robrosenbaum.com/php/improved-plugin-for-model-validation-sfpropelvalidateplugin/comment-page-1/#comment-51</link>
		<dc:creator>Thierry Schellenbach</dc:creator>
		<pubDate>Tue, 11 Sep 2007 11:32:19 +0000</pubDate>
		<guid isPermaLink="false">http://robrosenbaum.com/symfony/improved-plugin-for-model-validation-sfpropelvalidateplugin/#comment-51</guid>
		<description>In fact I didn&#039;t look at builders yet. Could you post a tutorial?</description>
		<content:encoded><![CDATA[<p>In fact I didn&#039;t look at builders yet. Could you post a tutorial?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
