<?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: ExpectsBehavior, model unbinding in CakePHP 1.2</title>
	<atom:link href="http://marianoiglesias.com.ar/cakephp/expectsbehavior-model-unbinding-in-cakephp-1-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://marianoiglesias.com.ar/cakephp/expectsbehavior-model-unbinding-in-cakephp-1-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=expectsbehavior-model-unbinding-in-cakephp-1-2</link>
	<description>A glimpse at a coder&#039;s troubled mind</description>
	<lastBuildDate>Thu, 10 May 2012 18:17:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: mariano.iglesias [Member]</title>
		<link>http://marianoiglesias.com.ar/cakephp/expectsbehavior-model-unbinding-in-cakephp-1-2/comment-page-1/#comment-105</link>
		<dc:creator>mariano.iglesias [Member]</dc:creator>
		<pubDate>Fri, 23 Nov 2007 18:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://marianoiglesias.com.ar/1/expectsbehavior-model-unbinding-in-cakephp-1-2/#comment-105</guid>
		<description>@all: &lt;strong&gt;UPDATE&lt;/strong&gt;: the first beta version has been released, and renamed to Bindable Behavior. Check it out at its bakery tutorial:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://bakery.cakephp.org/articles/view/bindable-behavior-control-your-model-bindings&quot; rel=&quot;nofollow&quot;&gt;Bindable Behavior: control your model bindings&lt;/a&gt;
</description>
		<content:encoded><![CDATA[<p>@all: <strong>UPDATE</strong>: the first beta version has been released, and renamed to Bindable Behavior. Check it out at its bakery tutorial:</p>
<p><a href="http://bakery.cakephp.org/articles/view/bindable-behavior-control-your-model-bindings" rel="nofollow">Bindable Behavior: control your model bindings</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mariano.iglesias [Member]</title>
		<link>http://marianoiglesias.com.ar/cakephp/expectsbehavior-model-unbinding-in-cakephp-1-2/comment-page-1/#comment-104</link>
		<dc:creator>mariano.iglesias [Member]</dc:creator>
		<pubDate>Wed, 21 Nov 2007 23:09:00 +0000</pubDate>
		<guid isPermaLink="false">http://marianoiglesias.com.ar/1/expectsbehavior-model-unbinding-in-cakephp-1-2/#comment-104</guid>
		<description>@landor: Model::$alias an array?? Are you declaring that variable yourself? It is used internally by CakePHP core, and it should *allways* be a string.&lt;br /&gt;
&lt;br /&gt;
Can you report a new bug ticket on the project page at:&lt;br /&gt;
&lt;br /&gt;
http://sourceforge.net/tracker/?func=add&amp;group_id=209331&amp;atid=1009286&lt;br /&gt;
&lt;br /&gt;
So I can keep a closer track of it? Also I&#039;d really appreciate if you can attach the models with which that is happening to you (model declarations + bindings). Did this happen while you were running the test case or just on your own models?&lt;br /&gt;
&lt;br /&gt;
Thanks! :)
</description>
		<content:encoded><![CDATA[<p>@landor: Model::$alias an array?? Are you declaring that variable yourself? It is used internally by CakePHP core, and it should *allways* be a string.</p>
<p>Can you report a new bug ticket on the project page at:</p>
<p><a href="http://sourceforge.net/tracker/?func=add&#038;group_id=209331&#038;atid=1009286" rel="nofollow">http://sourceforge.net/tracker/?func=add&#038;group_id=209331&#038;atid=1009286</a></p>
<p>So I can keep a closer track of it? Also I&#8217;d really appreciate if you can attach the models with which that is happening to you (model declarations + bindings). Did this happen while you were running the test case or just on your own models?</p>
<p>Thanks! <img src='http://marianoiglesias.com.ar/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: landor [Visitor]</title>
		<link>http://marianoiglesias.com.ar/cakephp/expectsbehavior-model-unbinding-in-cakephp-1-2/comment-page-1/#comment-103</link>
		<dc:creator>landor [Visitor]</dc:creator>
		<pubDate>Wed, 21 Nov 2007 22:59:00 +0000</pubDate>
		<guid isPermaLink="false">http://marianoiglesias.com.ar/1/expectsbehavior-model-unbinding-in-cakephp-1-2/#comment-103</guid>
		<description>Using nightlies rev 6030, php5, I get a bunch of warnings:&lt;br /&gt;
&lt;br /&gt;
Warning (2): Illegal offset type in isset or empty [APP/models/behaviors/expects.php, line 63]&lt;br /&gt;
Warning (2): Illegal offset type [APP/models/behaviors/expects.php, line 65]&lt;br /&gt;
etc...&lt;br /&gt;
&lt;br /&gt;
referring to&lt;br /&gt;
$this-&gt;__settings[$Model-&gt;alias]&lt;br /&gt;
because $Model-&gt;alias is an array.&lt;br /&gt;
&lt;br /&gt;
I am not using it extensively, but it seems to be working despite the warnings.
</description>
		<content:encoded><![CDATA[<p>Using nightlies rev 6030, php5, I get a bunch of warnings:</p>
<p>Warning (2): Illegal offset type in isset or empty [APP/models/behaviors/expects.php, line 63]<br />
Warning (2): Illegal offset type [APP/models/behaviors/expects.php, line 65]<br />
etc&#8230;</p>
<p>referring to<br />
$this->__settings[$Model->alias]<br />
because $Model->alias is an array.</p>
<p>I am not using it extensively, but it seems to be working despite the warnings.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mariano.iglesias [Member]</title>
		<link>http://marianoiglesias.com.ar/cakephp/expectsbehavior-model-unbinding-in-cakephp-1-2/comment-page-1/#comment-102</link>
		<dc:creator>mariano.iglesias [Member]</dc:creator>
		<pubDate>Tue, 20 Nov 2007 12:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://marianoiglesias.com.ar/1/expectsbehavior-model-unbinding-in-cakephp-1-2/#comment-102</guid>
		<description>@Aaron: yeah, actually I have it committed to a publicly available SVN server, but I have not yet released it since I&#039;m finishing the tutorial. But for all of you who are interested in an early release (I won&#039;t publish this anywhere else) here&#039;s the SVN address from where you can checkout expects:&lt;br /&gt;
&lt;br /&gt;
svn co https://cake-syrup.svn.sourceforge.net/svnroot/cake-syrup/expects&lt;br /&gt;
&lt;br /&gt;
Or browse the expects SVN branch online:&lt;br /&gt;
&lt;br /&gt;
http://cake-syrup.svn.sourceforge.net/viewvc/cake-syrup/expects&lt;br /&gt;
&lt;br /&gt;
As you&#039;ll see there are two files:&lt;br /&gt;
&lt;br /&gt;
* app/models/behaviors/expects.php - The ExpectsBehavior&lt;br /&gt;
* app/tests/cases/behaviors/expects.test.php - The test cases for ExpectsBehavior&lt;br /&gt;
&lt;br /&gt;
The code is stable, but since I have not yet finalized its documentation consider it to be an early release.
</description>
		<content:encoded><![CDATA[<p>@Aaron: yeah, actually I have it committed to a publicly available SVN server, but I have not yet released it since I&#8217;m finishing the tutorial. But for all of you who are interested in an early release (I won&#8217;t publish this anywhere else) here&#8217;s the SVN address from where you can checkout expects:</p>
<p>svn co <a href="https://cake-syrup.svn.sourceforge.net/svnroot/cake-syrup/expects" rel="nofollow">https://cake-syrup.svn.sourceforge.net/svnroot/cake-syrup/expects</a></p>
<p>Or browse the expects SVN branch online:</p>
<p><a href="http://cake-syrup.svn.sourceforge.net/viewvc/cake-syrup/expects" rel="nofollow">http://cake-syrup.svn.sourceforge.net/viewvc/cake-syrup/expects</a></p>
<p>As you&#8217;ll see there are two files:</p>
<p>* app/models/behaviors/expects.php &#8211; The ExpectsBehavior<br />
* app/tests/cases/behaviors/expects.test.php &#8211; The test cases for ExpectsBehavior</p>
<p>The code is stable, but since I have not yet finalized its documentation consider it to be an early release.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Shafovaloff [Visitor]</title>
		<link>http://marianoiglesias.com.ar/cakephp/expectsbehavior-model-unbinding-in-cakephp-1-2/comment-page-1/#comment-101</link>
		<dc:creator>Aaron Shafovaloff [Visitor]</dc:creator>
		<pubDate>Tue, 20 Nov 2007 04:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://marianoiglesias.com.ar/1/expectsbehavior-model-unbinding-in-cakephp-1-2/#comment-101</guid>
		<description>How is this coming along? Will it be done soon?
</description>
		<content:encoded><![CDATA[<p>How is this coming along? Will it be done soon?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: @martin [Visitor]</title>
		<link>http://marianoiglesias.com.ar/cakephp/expectsbehavior-model-unbinding-in-cakephp-1-2/comment-page-1/#comment-100</link>
		<dc:creator>@martin [Visitor]</dc:creator>
		<pubDate>Mon, 12 Nov 2007 20:56:00 +0000</pubDate>
		<guid isPermaLink="false">http://marianoiglesias.com.ar/1/expectsbehavior-model-unbinding-in-cakephp-1-2/#comment-100</guid>
		<description>Siempre brindando una bocanada de aire fresco a la comunidad de Cakephp. No hace falta decirte que muchos te seguimos los pasos.&lt;br /&gt;
Siempre hablando de behaviors, podes dar un consejo para solucionar los problemas que surgen con los behaviors y la recursividad en las asociaciones de modelos?&lt;br /&gt;
&lt;br /&gt;
Un abrazo.
</description>
		<content:encoded><![CDATA[<p>Siempre brindando una bocanada de aire fresco a la comunidad de Cakephp. No hace falta decirte que muchos te seguimos los pasos.<br />
Siempre hablando de behaviors, podes dar un consejo para solucionar los problemas que surgen con los behaviors y la recursividad en las asociaciones de modelos?</p>
<p>Un abrazo.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mariano.iglesias [Member]</title>
		<link>http://marianoiglesias.com.ar/cakephp/expectsbehavior-model-unbinding-in-cakephp-1-2/comment-page-1/#comment-99</link>
		<dc:creator>mariano.iglesias [Member]</dc:creator>
		<pubDate>Wed, 07 Nov 2007 03:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://marianoiglesias.com.ar/1/expectsbehavior-model-unbinding-in-cakephp-1-2/#comment-99</guid>
		<description>@gonzalo: currently these are the settings that can be overriden through expects: &#039;conditions&#039;, &#039;fields&#039;, &#039;limit&#039;, &#039;offset&#039;, &#039;order&#039;.&lt;br /&gt;
&lt;br /&gt;
I am already committing the code to a public SVN and preparing the tutorial, so it will be on very soon.
</description>
		<content:encoded><![CDATA[<p>@gonzalo: currently these are the settings that can be overriden through expects: &#8216;conditions&#8217;, &#8216;fields&#8217;, &#8216;limit&#8217;, &#8216;offset&#8217;, &#8216;order&#8217;.</p>
<p>I am already committing the code to a public SVN and preparing the tutorial, so it will be on very soon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gonzalo [Visitor]</title>
		<link>http://marianoiglesias.com.ar/cakephp/expectsbehavior-model-unbinding-in-cakephp-1-2/comment-page-1/#comment-98</link>
		<dc:creator>gonzalo [Visitor]</dc:creator>
		<pubDate>Tue, 06 Nov 2007 19:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://marianoiglesias.com.ar/1/expectsbehavior-model-unbinding-in-cakephp-1-2/#comment-98</guid>
		<description>Excellent work, really waiting for this!&lt;br /&gt;
Do you expect that in the final release the conditions setting of the relationship could be overrided too? Or the only ones modifiable (&#191;?) are limit, order and offset?
</description>
		<content:encoded><![CDATA[<p>Excellent work, really waiting for this!<br />
Do you expect that in the final release the conditions setting of the relationship could be overrided too? Or the only ones modifiable (&#191;?) are limit, order and offset?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mariano.iglesias [Member]</title>
		<link>http://marianoiglesias.com.ar/cakephp/expectsbehavior-model-unbinding-in-cakephp-1-2/comment-page-1/#comment-97</link>
		<dc:creator>mariano.iglesias [Member]</dc:creator>
		<pubDate>Tue, 30 Oct 2007 16:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://marianoiglesias.com.ar/1/expectsbehavior-model-unbinding-in-cakephp-1-2/#comment-97</guid>
		<description>@dericknwq: There&#039;s a method to restore the original associations right in the behavior. You would just do: $this-&gt;Article-&gt;resetExpects(). About paginate, it may even get simplier than that in the near future, though you could use ExpectsBehavior now by implementing the paginateCount() and paginate() method on your models.
</description>
		<content:encoded><![CDATA[<p>@dericknwq: There&#8217;s a method to restore the original associations right in the behavior. You would just do: $this->Article->resetExpects(). About paginate, it may even get simplier than that in the near future, though you could use ExpectsBehavior now by implementing the paginateCount() and paginate() method on your models.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dericknwq [Visitor]</title>
		<link>http://marianoiglesias.com.ar/cakephp/expectsbehavior-model-unbinding-in-cakephp-1-2/comment-page-1/#comment-96</link>
		<dc:creator>dericknwq [Visitor]</dc:creator>
		<pubDate>Tue, 30 Oct 2007 11:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://marianoiglesias.com.ar/1/expectsbehavior-model-unbinding-in-cakephp-1-2/#comment-96</guid>
		<description>Aye, release it soon! :) Will be good if there are ways to make it permanent to work with Controller::paginate. Also, could have a restore original association method! In that case, we can have a permanent call when using paginate, then restore the original associations for the other lines of code after it.
</description>
		<content:encoded><![CDATA[<p>Aye, release it soon! <img src='http://marianoiglesias.com.ar/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Will be good if there are ways to make it permanent to work with Controller::paginate. Also, could have a restore original association method! In that case, we can have a permanent call when using paginate, then restore the original associations for the other lines of code after it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced (User agent is rejected)
Database Caching 2/24 queries in 0.016 seconds using disk: basic
Object Caching 337/361 objects using disk: basic

Served from: marianoiglesias.com.ar @ 2012-05-18 04:57:02 -->
