<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Improved Plugin for Model Validation: sfPropelValidatePlugin</title>
	<link>http://robrosenbaum.com/php/improved-plugin-for-model-validation-sfpropelvalidateplugin/</link>
	<description>PHP, Symfony, and Other Web Things</description>
	<pubDate>Wed, 20 Aug 2008 20:42:17 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.2</generator>
		<item>
		<title>By: pdaether</title>
		<link>http://robrosenbaum.com/php/improved-plugin-for-model-validation-sfpropelvalidateplugin/#comment-303</link>
		<dc:creator>pdaether</dc:creator>
		<pubDate>Thu, 03 Apr 2008 15:43:50 +0000</pubDate>
		<guid>http://robrosenbaum.com/php/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 - 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-301</link>
		<dc:creator>Lucas</dc:creator>
		<pubDate>Tue, 18 Mar 2008 18:06:24 +0000</pubDate>
		<guid>http://robrosenbaum.com/php/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-73</link>
		<dc:creator>Lucas</dc:creator>
		<pubDate>Fri, 19 Oct 2007 14:06:30 +0000</pubDate>
		<guid>http://robrosenbaum.com/php/improved-plugin-for-model-validation-sfpropelvalidateplugin/#comment-73</guid>
		<description>Hi Nice plugin, i just made some modifications. 
Using: 
if (!$article-&#62;save()) {
  $this-&#62;forward('patient', 'edit');
}
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 = '
    if(!$this-&#62;isModified()) return true;    
    ';    
    $tmp = preg_replace('/(:save:pre.*?}.*?})/s', '\1'.$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-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>http://robrosenbaum.com/php/improved-plugin-for-model-validation-sfpropelvalidateplugin/#comment-57</guid>
		<description>[...] Improved Plugin for Model Validation: sfPropelValidatePlugin [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Improved Plugin for Model Validation: sfPropelValidatePlugin [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thierry Schellenbach</title>
		<link>http://robrosenbaum.com/php/improved-plugin-for-model-validation-sfpropelvalidateplugin/#comment-51</link>
		<dc:creator>Thierry Schellenbach</dc:creator>
		<pubDate>Tue, 11 Sep 2007 11:32:19 +0000</pubDate>
		<guid>http://robrosenbaum.com/php/improved-plugin-for-model-validation-sfpropelvalidateplugin/#comment-51</guid>
		<description>In fact I didn'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>
