<?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: DABL &#8211; PHP Database ABstraction Layer ORM</title>
	<atom:link href="http://manifestwebdesign.com/developer-resources/database-abstraction-layer/feed/" rel="self" type="application/rss+xml" />
	<link>http://manifestwebdesign.com</link>
	<description>Beaverton Oregon Web Development</description>
	<lastBuildDate>Fri, 02 Apr 2010 17:38:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: Ken Penfold</title>
		<link>http://manifestwebdesign.com/developer-resources/database-abstraction-layer/comment-page-1/#comment-675</link>
		<dc:creator>Ken Penfold</dc:creator>
		<pubDate>Fri, 02 Apr 2010 17:38:27 +0000</pubDate>
		<guid isPermaLink="false">http://manifestwebdesign.com/?page_id=44#comment-675</guid>
		<description>A real time saver. Great work.  There is a small typo in generate.php at line 76 which should read &lt;?php otherwise 5*.</description>
		<content:encoded><![CDATA[<p>A real time saver. Great work.  There is a small typo in generate.php at line 76 which should read &lt;?php otherwise 5*.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://manifestwebdesign.com/developer-resources/database-abstraction-layer/comment-page-1/#comment-664</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 29 Mar 2010 16:33:09 +0000</pubDate>
		<guid isPermaLink="false">http://manifestwebdesign.com/?page_id=44#comment-664</guid>
		<description>Hi Bill,

It does work on WAMP.  That&#039;s actually where a lot of the development has been (XAMPP and WAMP on Windows).  Two of us use Windows/XAMPP/Netbeans and two of us use LAMP/VIM for development.

Regarding any errors and updates in general.  I&#039;m working on a new version that uses the propel-gen code (minus Phing and/or Creole) in the background to generate the classes.  The interface for generating the classes will still be browser based, but I figured it&#039;s best to use what I can from other libraries.  The new version includes code for creating MVC (Model-View-Controller) applications.  My goal is to be able to release a MVC and non-MVC version with all of the updates this week.</description>
		<content:encoded><![CDATA[<p>Hi Bill,</p>
<p>It does work on WAMP.  That&#8217;s actually where a lot of the development has been (XAMPP and WAMP on Windows).  Two of us use Windows/XAMPP/Netbeans and two of us use LAMP/VIM for development.</p>
<p>Regarding any errors and updates in general.  I&#8217;m working on a new version that uses the propel-gen code (minus Phing and/or Creole) in the background to generate the classes.  The interface for generating the classes will still be browser based, but I figured it&#8217;s best to use what I can from other libraries.  The new version includes code for creating MVC (Model-View-Controller) applications.  My goal is to be able to release a MVC and non-MVC version with all of the updates this week.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Winder</title>
		<link>http://manifestwebdesign.com/developer-resources/database-abstraction-layer/comment-page-1/#comment-663</link>
		<dc:creator>Bill Winder</dc:creator>
		<pubDate>Mon, 29 Mar 2010 14:23:09 +0000</pubDate>
		<guid isPermaLink="false">http://manifestwebdesign.com/?page_id=44#comment-663</guid>
		<description>I have tried to run the generate on a Linux server but get the message 

Fatal error: Uncaught exception &#039;PDOException&#039; with message &#039;SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.&#039; in /var/www/vhosts/mydomain/httpdocs/libraries/dabl/adapter/mysql/MySQLTableInfo.php:40 Stack trace: #0 /var/www/vhosts/mydomain/httpdocs/libraries/dabl/adapter/mysql/MySQLTableInfo.php(40): PDO-&gt;query(&#039;SHOW COLUMNS FR...&#039;) #1 /var/www/vhosts/mydomain/httpdocs/libraries/dabl/adapter/TableInfo.php(179): MySQLTableInfo-&gt;initColumns() #2 /var/www/vhosts/mydomain/httpdocs/libraries/dabl/adapter/mysql/MySQLDatabaseInfo.php(42): TableInfo-&gt;getColumns() #3 /var/www/vhosts/mydomain/httpdocs/libraries/dabl/adapter/DatabaseInfo.php(148): MySQLDatabaseInfo-&gt;initTables() #4 /var/www/vhosts/opt.schools-o in /var/www/vhosts/mydomain/httpdocs/libraries/dabl/adapter/mysql/MySQLTableInfo.php on line 40

Any ideas as to what causes this? thanks</description>
		<content:encoded><![CDATA[<p>I have tried to run the generate on a Linux server but get the message </p>
<p>Fatal error: Uncaught exception &#8216;PDOException&#8217; with message &#8216;SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.&#8217; in /var/www/vhosts/mydomain/httpdocs/libraries/dabl/adapter/mysql/MySQLTableInfo.php:40 Stack trace: #0 /var/www/vhosts/mydomain/httpdocs/libraries/dabl/adapter/mysql/MySQLTableInfo.php(40): PDO-&gt;query(&#8216;SHOW COLUMNS FR&#8230;&#8217;) #1 /var/www/vhosts/mydomain/httpdocs/libraries/dabl/adapter/TableInfo.php(179): MySQLTableInfo-&gt;initColumns() #2 /var/www/vhosts/mydomain/httpdocs/libraries/dabl/adapter/mysql/MySQLDatabaseInfo.php(42): TableInfo-&gt;getColumns() #3 /var/www/vhosts/mydomain/httpdocs/libraries/dabl/adapter/DatabaseInfo.php(148): MySQLDatabaseInfo-&gt;initTables() #4 /var/www/vhosts/opt.schools-o in /var/www/vhosts/mydomain/httpdocs/libraries/dabl/adapter/mysql/MySQLTableInfo.php on line 40</p>
<p>Any ideas as to what causes this? thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Winder</title>
		<link>http://manifestwebdesign.com/developer-resources/database-abstraction-layer/comment-page-1/#comment-662</link>
		<dc:creator>Bill Winder</dc:creator>
		<pubDate>Mon, 29 Mar 2010 13:35:04 +0000</pubDate>
		<guid isPermaLink="false">http://manifestwebdesign.com/?page_id=44#comment-662</guid>
		<description>Really like the look of DABL, and the name too!  Does it run ok on WAMP, will I need to install anything extra?  Thanks</description>
		<content:encoded><![CDATA[<p>Really like the look of DABL, and the name too!  Does it run ok on WAMP, will I need to install anything extra?  Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://manifestwebdesign.com/developer-resources/database-abstraction-layer/comment-page-1/#comment-652</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Sat, 27 Mar 2010 00:37:40 +0000</pubDate>
		<guid isPermaLink="false">http://manifestwebdesign.com/?page_id=44#comment-652</guid>
		<description>Is it possible to download DABL 1.3? You only have the link for 2.0 beta up, and that version doesn&#039;t work for me.

Thanks.</description>
		<content:encoded><![CDATA[<p>Is it possible to download DABL 1.3? You only have the link for 2.0 beta up, and that version doesn&#8217;t work for me.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://manifestwebdesign.com/developer-resources/database-abstraction-layer/comment-page-1/#comment-101</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 28 Oct 2009 16:14:38 +0000</pubDate>
		<guid isPermaLink="false">http://manifestwebdesign.com/?page_id=44#comment-101</guid>
		<description>Brian,

An exception is being throw when mapDB tries to build your schema.  If you change the following:

catch(Exception $e){
	throw new Exception(&quot;Unable to read database.&quot;);
}

...to

catch(Exception $e){
	throw($e);
}

...you&#039;ll have some more useful information. If you think there is still a problem, please email or post the actual exception.</description>
		<content:encoded><![CDATA[<p>Brian,</p>
<p>An exception is being throw when mapDB tries to build your schema.  If you change the following:</p>
<p>catch(Exception $e){<br />
	throw new Exception(&#8220;Unable to read database.&#8221;);<br />
}</p>
<p>&#8230;to</p>
<p>catch(Exception $e){<br />
	throw($e);<br />
}</p>
<p>&#8230;you&#8217;ll have some more useful information. If you think there is still a problem, please email or post the actual exception.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://manifestwebdesign.com/developer-resources/database-abstraction-layer/comment-page-1/#comment-100</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 28 Oct 2009 16:12:02 +0000</pubDate>
		<guid isPermaLink="false">http://manifestwebdesign.com/?page_id=44#comment-100</guid>
		<description>Ashok,

Your situation does happen from time to time.  At some point I will make DABL more clever and build multiple methods for the foreign keys that don&#039;t conflict.  In the meantime, you can write your own methods for each column, such as $book-&gt;getReviewer() and $book-&gt;getAuther() with your own custom code.  What I will eventually add is something more generic such as $book-&gt;getUserByAuthorID() and $book-&gt;getUserByReviewerID(), if AuthorID and ReviewerID were the columns in the Book table.  That is what Propel does.</description>
		<content:encoded><![CDATA[<p>Ashok,</p>
<p>Your situation does happen from time to time.  At some point I will make DABL more clever and build multiple methods for the foreign keys that don&#8217;t conflict.  In the meantime, you can write your own methods for each column, such as $book-&gt;getReviewer() and $book-&gt;getAuther() with your own custom code.  What I will eventually add is something more generic such as $book-&gt;getUserByAuthorID() and $book-&gt;getUserByReviewerID(), if AuthorID and ReviewerID were the columns in the Book table.  That is what Propel does.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://manifestwebdesign.com/developer-resources/database-abstraction-layer/comment-page-1/#comment-99</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 28 Oct 2009 16:08:58 +0000</pubDate>
		<guid isPermaLink="false">http://manifestwebdesign.com/?page_id=44#comment-99</guid>
		<description>Wes, can you send me your file so I am sure we&#039;re looking at the same thing.  My copy seems to run and validate.</description>
		<content:encoded><![CDATA[<p>Wes, can you send me your file so I am sure we&#8217;re looking at the same thing.  My copy seems to run and validate.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://manifestwebdesign.com/developer-resources/database-abstraction-layer/comment-page-1/#comment-98</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 28 Oct 2009 16:08:26 +0000</pubDate>
		<guid isPermaLink="false">http://manifestwebdesign.com/?page_id=44#comment-98</guid>
		<description>Mukund,

There is not yet a way to do a bulk update using the table classes.  Typically with ORMs you want to work with each row as an object, which means looping through your objects and changing them.  If you are dealing with such high amounts of data that loops and multiple database calls isn&#039;t practical, then you can use the MyTable::getConnection() method to get the php PDO object and build your own update query.  I hope that helps.  Let me know if you have any suggestions on ways to improve this.</description>
		<content:encoded><![CDATA[<p>Mukund,</p>
<p>There is not yet a way to do a bulk update using the table classes.  Typically with ORMs you want to work with each row as an object, which means looping through your objects and changing them.  If you are dealing with such high amounts of data that loops and multiple database calls isn&#8217;t practical, then you can use the MyTable::getConnection() method to get the php PDO object and build your own update query.  I hope that helps.  Let me know if you have any suggestions on ways to improve this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wes</title>
		<link>http://manifestwebdesign.com/developer-resources/database-abstraction-layer/comment-page-1/#comment-61</link>
		<dc:creator>Wes</dc:creator>
		<pubDate>Mon, 26 Oct 2009 20:56:33 +0000</pubDate>
		<guid isPermaLink="false">http://manifestwebdesign.com/?page_id=44#comment-61</guid>
		<description>I am trying to use mapDB.php, but I get an error on line 956 of DABLGenerator.php. It looks like some code is missing.

it starts
&lt;?php
       }
       public static function ---</description>
		<content:encoded><![CDATA[<p>I am trying to use mapDB.php, but I get an error on line 956 of DABLGenerator.php. It looks like some code is missing.</p>
<p>it starts<br />
&lt;?php<br />
       }<br />
       public static function &#8212;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

