<?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: PHP ActiveRecord Available for Beta Testing</title>
	<atom:link href="http://www.derivante.com/2009/05/19/php-activerecord-available-for-beta-testing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.derivante.com/2009/05/19/php-activerecord-available-for-beta-testing/</link>
	<description>to obtain or receive from a source</description>
	<lastBuildDate>Mon, 08 Mar 2010 16:36:12 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Kien La</title>
		<link>http://www.derivante.com/2009/05/19/php-activerecord-available-for-beta-testing/comment-page-3/#comment-413</link>
		<dc:creator>Kien La</dc:creator>
		<pubDate>Sat, 27 Feb 2010 15:59:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.derivante.com/?p=548#comment-413</guid>
		<description>That&#039;s good to hear. You&#039;re welcome to submit patches by forking the project on github or just emailing us.</description>
		<content:encoded><![CDATA[<p>That&#8217;s good to hear. You&#8217;re welcome to submit patches by forking the project on github or just emailing us.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.derivante.com/2009/05/19/php-activerecord-available-for-beta-testing/comment-page-3/#comment-412</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Fri, 26 Feb 2010 17:24:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.derivante.com/?p=548#comment-412</guid>
		<description>Thank you for publishing these tools!  This project has been a huge help to our development efforts.  We&#039;ve been doing seo website design and development at industryforge.com for a long time, and love the efficiencies we gain from using your tools.  We now have this code running in multiple production environments.  We would love to contribute if desired.</description>
		<content:encoded><![CDATA[<p>Thank you for publishing these tools!  This project has been a huge help to our development efforts.  We&#8217;ve been doing seo website design and development at industryforge.com for a long time, and love the efficiencies we gain from using your tools.  We now have this code running in multiple production environments.  We would love to contribute if desired.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kien La</title>
		<link>http://www.derivante.com/2009/05/19/php-activerecord-available-for-beta-testing/comment-page-3/#comment-408</link>
		<dc:creator>Kien La</dc:creator>
		<pubDate>Fri, 12 Feb 2010 03:49:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.derivante.com/?p=548#comment-408</guid>
		<description>Hey Kirk, if you could provide more specifics on the headaches you mentioned I can see if I can address them since more than likely other people have run across the same things and I&#039;d like to get it fixed. Just drop me an email.

We would definitely like for people to contribute. Just fork the project on github or you can email patches to me.</description>
		<content:encoded><![CDATA[<p>Hey Kirk, if you could provide more specifics on the headaches you mentioned I can see if I can address them since more than likely other people have run across the same things and I&#8217;d like to get it fixed. Just drop me an email.</p>
<p>We would definitely like for people to contribute. Just fork the project on github or you can email patches to me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kirk Bushell</title>
		<link>http://www.derivante.com/2009/05/19/php-activerecord-available-for-beta-testing/comment-page-3/#comment-407</link>
		<dc:creator>Kirk Bushell</dc:creator>
		<pubDate>Fri, 12 Feb 2010 03:31:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.derivante.com/?p=548#comment-407</guid>
		<description>First and foremost - great work guys. I&#039;ve been using this in a production environment (with a few headaches), but there&#039;s a few things I thought I might offer in terms of what I think the library should/shouldn&#039;t have.

I think you&#039;ve made a blooper with the design decision to force standards in PHP. With a library like Rails, it&#039;s easy to do because developers are either starting new projects with it, or are working on projects that already use it. I&#039;ve had quite a few problems trying to get the library working with one of our legacy systems. I got there - but not without some changes. First and foremost is PHPActiveRecord&#039;s use of converting field names - this is a problem as all our field names have a capslocked suffix (don&#039;t ask).

Secondly, this was also a problem when reporting errors - as the library tried to humanize the field names, so where we had fields like price_ADV, in the error - it would show up as &quot;price a d v&quot;, as it stuck to it&#039;s own naming conventions.

I&#039;m sure for most cases, the library isn&#039;t going to be an issue, but I think considering that it&#039;s a new library, and a lot of people are going to want to drop it in as a solution to easy database connectivity, forcing standards may not work out as you had hoped.

Keep up the good work :)

PS - is there any way for us to contribute directly?</description>
		<content:encoded><![CDATA[<p>First and foremost &#8211; great work guys. I&#8217;ve been using this in a production environment (with a few headaches), but there&#8217;s a few things I thought I might offer in terms of what I think the library should/shouldn&#8217;t have.</p>
<p>I think you&#8217;ve made a blooper with the design decision to force standards in PHP. With a library like Rails, it&#8217;s easy to do because developers are either starting new projects with it, or are working on projects that already use it. I&#8217;ve had quite a few problems trying to get the library working with one of our legacy systems. I got there &#8211; but not without some changes. First and foremost is PHPActiveRecord&#8217;s use of converting field names &#8211; this is a problem as all our field names have a capslocked suffix (don&#8217;t ask).</p>
<p>Secondly, this was also a problem when reporting errors &#8211; as the library tried to humanize the field names, so where we had fields like price_ADV, in the error &#8211; it would show up as &#8220;price a d v&#8221;, as it stuck to it&#8217;s own naming conventions.</p>
<p>I&#8217;m sure for most cases, the library isn&#8217;t going to be an issue, but I think considering that it&#8217;s a new library, and a lot of people are going to want to drop it in as a solution to easy database connectivity, forcing standards may not work out as you had hoped.</p>
<p>Keep up the good work <img src='http://www.derivante.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>PS &#8211; is there any way for us to contribute directly?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Björn Göransson</title>
		<link>http://www.derivante.com/2009/05/19/php-activerecord-available-for-beta-testing/comment-page-3/#comment-406</link>
		<dc:creator>Björn Göransson</dc:creator>
		<pubDate>Thu, 11 Feb 2010 09:20:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.derivante.com/?p=548#comment-406</guid>
		<description>Hi,

I&#039;m coming from CodeIgniter Active Record DB library, where one has the ability to specify a TABLE PREFIX (eg &quot;myapp_&quot;) that will be prepended on all table names.

Is this feature available already (I haven&#039;t found it yet, though)

Thanks for a versatile tool.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;m coming from CodeIgniter Active Record DB library, where one has the ability to specify a TABLE PREFIX (eg &#8220;myapp_&#8221;) that will be prepended on all table names.</p>
<p>Is this feature available already (I haven&#8217;t found it yet, though)</p>
<p>Thanks for a versatile tool.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kirk Bushell</title>
		<link>http://www.derivante.com/2009/05/19/php-activerecord-available-for-beta-testing/comment-page-2/#comment-401</link>
		<dc:creator>Kirk Bushell</dc:creator>
		<pubDate>Sun, 03 Jan 2010 23:11:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.derivante.com/?p=548#comment-401</guid>
		<description>This implementation of ActiveRecord requires PHP 5.3 and above. Namespaces are only available since that release, amongst other things, like anonymous functions.</description>
		<content:encoded><![CDATA[<p>This implementation of ActiveRecord requires PHP 5.3 and above. Namespaces are only available since that release, amongst other things, like anonymous functions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.derivante.com/2009/05/19/php-activerecord-available-for-beta-testing/comment-page-2/#comment-396</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Tue, 01 Dec 2009 18:49:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.derivante.com/?p=548#comment-396</guid>
		<description>Sorry about the previous posts--I just found the answer: PHP 5.3 added namespaces (http://us.php.net/manual/en/language.namespaces.rationale.php) and uses the backslash character as the namespace separator.  You must have PHP 5.3 (I should have read more carefully) to use PHP ActiveRecord.</description>
		<content:encoded><![CDATA[<p>Sorry about the previous posts&#8211;I just found the answer: PHP 5.3 added namespaces (<a href="http://us.php.net/manual/en/language.namespaces.rationale.php" rel="nofollow">http://us.php.net/manual/en/language.namespaces.rationale.php</a>) and uses the backslash character as the namespace separator.  You must have PHP 5.3 (I should have read more carefully) to use PHP ActiveRecord.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.derivante.com/2009/05/19/php-activerecord-available-for-beta-testing/comment-page-2/#comment-395</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Tue, 01 Dec 2009 18:41:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.derivante.com/?p=548#comment-395</guid>
		<description>Somehow, the line of code in question were removed when I posted previously.  Here&#039;s the line throwing the error:

ActiveRecord\Config::initialize(function($cfg)</description>
		<content:encoded><![CDATA[<p>Somehow, the line of code in question were removed when I posted previously.  Here&#8217;s the line throwing the error:</p>
<p>ActiveRecord\Config::initialize(function($cfg)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.derivante.com/2009/05/19/php-activerecord-available-for-beta-testing/comment-page-2/#comment-394</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Tue, 01 Dec 2009 18:38:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.derivante.com/?p=548#comment-394</guid>
		<description>Any idea why the ActiveRecord\Config is causing problems for me?  I thought it might have something to do with magic_quotes, but I turned them off in production env with no luck.  Everything works fine on my local system (php 5.3.0), but when I upload to the GoDaddy hosting env (php 5.2.8) I get an error.  Here&#039;s the error I get:

Parse error: syntax error, unexpected T_STRING in /my_php_script.php on line 3

And here&#039;s the code:

set_model_directory(&#039;classes&#039;);
	$cfg-&gt;set_connections(array(&#039;development&#039; =&gt; &#039;mysql://&#039;.DB_USER.&#039;:&#039;.DB_PASS.&#039;@&#039;.DB_HOST.&#039;/&#039;.DB_NAME));
});
?&gt;</description>
		<content:encoded><![CDATA[<p>Any idea why the ActiveRecord\Config is causing problems for me?  I thought it might have something to do with magic_quotes, but I turned them off in production env with no luck.  Everything works fine on my local system (php 5.3.0), but when I upload to the GoDaddy hosting env (php 5.2.8) I get an error.  Here&#8217;s the error I get:</p>
<p>Parse error: syntax error, unexpected T_STRING in /my_php_script.php on line 3</p>
<p>And here&#8217;s the code:</p>
<p>set_model_directory(&#8217;classes&#8217;);<br />
	$cfg-&gt;set_connections(array(&#8217;development&#8217; =&gt; &#8216;mysql://&#8217;.DB_USER.&#8217;:&#8217;.DB_PASS.&#8217;@&#8217;.DB_HOST.&#8217;/&#8217;.DB_NAME));<br />
});<br />
?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://www.derivante.com/2009/05/19/php-activerecord-available-for-beta-testing/comment-page-2/#comment-384</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Thu, 19 Nov 2009 13:53:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.derivante.com/?p=548#comment-384</guid>
		<description>I mean caching column meta on server using apc memory functions: apc_store and apc_fetch. That&#039;s what I&#039;m doing in my &quot;Active RecordLite&quot; slimmed down version of your Active Record.</description>
		<content:encoded><![CDATA[<p>I mean caching column meta on server using apc memory functions: apc_store and apc_fetch. That&#8217;s what I&#8217;m doing in my &#8220;Active RecordLite&#8221; slimmed down version of your Active Record.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://www.derivante.com/2009/05/19/php-activerecord-available-for-beta-testing/comment-page-2/#comment-383</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Wed, 18 Nov 2009 14:11:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.derivante.com/?p=548#comment-383</guid>
		<description>what about caching the column meta data from &quot;SHOW COLUMNS FROM &quot;  ?</description>
		<content:encoded><![CDATA[<p>what about caching the column meta data from &#8220;SHOW COLUMNS FROM &#8221;  ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacques Fuentes</title>
		<link>http://www.derivante.com/2009/05/19/php-activerecord-available-for-beta-testing/comment-page-2/#comment-361</link>
		<dc:creator>Jacques Fuentes</dc:creator>
		<pubDate>Tue, 13 Oct 2009 18:59:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.derivante.com/?p=548#comment-361</guid>
		<description>Just wanted to let you know, yes, the field information for each table is cached in the Table class.</description>
		<content:encoded><![CDATA[<p>Just wanted to let you know, yes, the field information for each table is cached in the Table class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sathya</title>
		<link>http://www.derivante.com/2009/05/19/php-activerecord-available-for-beta-testing/comment-page-2/#comment-360</link>
		<dc:creator>Sathya</dc:creator>
		<pubDate>Tue, 13 Oct 2009 18:42:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.derivante.com/?p=548#comment-360</guid>
		<description>The whole point of php-activerecord is that you don&#039;t NEED to generate models. You write one simple file with a class extending ActiveRecord\Model and the name of the class automatically inflects from say &quot;Book&quot; to the table name &quot;books&quot;. (And you can explicitly set the table name if you don&#039;t like inflection.) Also, I assume it automatically pulls the describe table information (cacheable?) so you don&#039;t need any configuration file with columns or anything.

Just like Rails&#039; ActiveRecord::Base

BTW guys behind php-activerecord, I think you&#039;re doing a really good thing here. I absolutely hate Zend_Db, and I hope to one day replace it with your model :)</description>
		<content:encoded><![CDATA[<p>The whole point of php-activerecord is that you don&#8217;t NEED to generate models. You write one simple file with a class extending ActiveRecord\Model and the name of the class automatically inflects from say &#8220;Book&#8221; to the table name &#8220;books&#8221;. (And you can explicitly set the table name if you don&#8217;t like inflection.) Also, I assume it automatically pulls the describe table information (cacheable?) so you don&#8217;t need any configuration file with columns or anything.</p>
<p>Just like Rails&#8217; ActiveRecord::Base</p>
<p>BTW guys behind php-activerecord, I think you&#8217;re doing a really good thing here. I absolutely hate Zend_Db, and I hope to one day replace it with your model <img src='http://www.derivante.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kien La</title>
		<link>http://www.derivante.com/2009/05/19/php-activerecord-available-for-beta-testing/comment-page-2/#comment-241</link>
		<dc:creator>Kien La</dc:creator>
		<pubDate>Tue, 28 Jul 2009 17:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.derivante.com/?p=548#comment-241</guid>
		<description>You&#039;d have to use the conditions option:

Foo::all(array(&#039;conditions&#039; =&gt; array(&quot;field_a=? and (field_b=? or field_c=?)&quot;, &#039;abc&#039;, 0, 1)));

or a slightly simpler form if you don&#039;t have a need to bind any parameters:

Foo::all(&quot;field_a=&#039;abc&#039; and (field_b=0 or field_c=1)&quot;);

Hope that helps.</description>
		<content:encoded><![CDATA[<p>You&#8217;d have to use the conditions option:</p>
<p>Foo::all(array(&#8217;conditions&#8217; => array(&#8221;field_a=? and (field_b=? or field_c=?)&#8221;, &#8216;abc&#8217;, 0, 1)));</p>
<p>or a slightly simpler form if you don&#8217;t have a need to bind any parameters:</p>
<p>Foo::all(&#8221;field_a=&#8217;abc&#8217; and (field_b=0 or field_c=1)&#8221;);</p>
<p>Hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Urkman</title>
		<link>http://www.derivante.com/2009/05/19/php-activerecord-available-for-beta-testing/comment-page-2/#comment-240</link>
		<dc:creator>Urkman</dc:creator>
		<pubDate>Tue, 28 Jul 2009 14:47:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.derivante.com/?p=548#comment-240</guid>
		<description>Hello,

I took a look at your examples, but I can&#039;t find something like this.
How do you solve a sql query like this:

select * 
  from table_foo
 where field_a = &#039;abc&#039;
   and ( field_b = 0
    or field_c = 1 );

Thanks and greetings,
Urkman</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I took a look at your examples, but I can&#8217;t find something like this.<br />
How do you solve a sql query like this:</p>
<p>select *<br />
  from table_foo<br />
 where field_a = &#8216;abc&#8217;<br />
   and ( field_b = 0<br />
    or field_c = 1 );</p>
<p>Thanks and greetings,<br />
Urkman</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->