<?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>Sat, 18 May 2013 12:36:32 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Federico Cargnelutti's Blog: Zend Framework DAL: DAOs and DataMappers]]></title>
      <guid>http://www.phpdeveloper.org/news/13262</guid>
      <link>http://www.phpdeveloper.org/news/13262</link>
      <description><![CDATA[<p>
In <a href="http://blog.fedecarg.com/2009/09/19/zend-framework-dal-daos-and-datamappers/">his latest blog post</a> <i>Federico Cargnelutti</i> talks about data access layers, data access objects, data mappers and how to implement them in a Zend Framework application.
</p>
<p>
In his example code he creates a few new directories in his basic application layout under the "lib" directory to contain the files for the mapper, data access layer and data objects. He uses s simple "user" table with first and last names and an ID to help identify the row.
</p>
<p>
The User model, mapper and data access object work together to make a simple "getUser" method as easy as creating a new Project_DataMapper_User object and setting up the entity before doing the fetch with a "get" call.
</p>]]></description>
      <pubDate>Tue, 22 Sep 2009 08:19:51 -0500</pubDate>
    </item>
  </channel>
</rss>
