<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Thu, 04 Dec 2008 14:00:01 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Chris Hartjes' Blog: The Devil's In The Details (or, Handling Sequences in Postgres in CakePHP)]]></title>
      <guid>http://www.phpdeveloper.org/news/9557</guid>
      <link>http://www.phpdeveloper.org/news/9557</link>
      <description><![CDATA[<p>
<i>Chris Hartjes</i> has <a href="http://www.littlehart.net/atthekeyboard/2008/02/02/the-devils-in-the-details-or-handling-sequences-in-postgres-in-cakephp/">shared his experiences</a> in dealing with the combination of Postgres and CakePHP and convincing it to work with sequences in your tables.
</p>
<blockquote>
<p>
I had been struggling with some weirdness that CakePHP has been displaying while trying to add some new features to the <a href="http://www.ibl.org/">baseball league website</a>, where Cake + PHP 4.4 + Postgres were deciding to just be sulky and not work together well.
</p>
<p>
Lucky for me, it turns out that the solution (for now) to the problem was to simply add the name of the sequence for that table as a variable to the model definition.
</p>
</blockquote>
<p>
He <a href="http://www.littlehart.net/atthekeyboard/2008/02/02/the-devils-in-the-details-or-handling-sequences-in-postgres-in-cakephp/">includes the code</a> for the Model that creates the connections between hos tables (belongsTo) and creates a sequence global to the class - note the naming convention.
</p>]]></description>
      <pubDate>Mon, 04 Feb 2008 08:47:00 -0600</pubDate>
    </item>
  </channel>
</rss>
