<?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>Wed, 19 Jun 2013 00:30:25 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Zend Developer Zone: DataModeler: Simple ORM - Part 2 Saving Models]]></title>
      <guid>http://www.phpdeveloper.org/news/15169</guid>
      <link>http://www.phpdeveloper.org/news/15169</link>
      <description><![CDATA[<p>
In his <a href="http://phpdeveloper.org/news/15056">previous post</a> <i>Vic Cherubini</i> introduced his namespaced DataModler ORM class and showed how to create a basic model to work with user information to the database. In <a href="http://devzone.zend.com/article/12568-DataModeler-Simple-ORM---Part-2-Saving-Models">this second part</a> he looks at taking those models and saving their contents to the database.
</p>
<blockquote>
After you have created your Models, it's time to save them to a datastore. DataModeler requires you to use PDO as the abstraction layer as it makes use of prepared statements and database specific extensions.
</blockquote>
<p>
He bases it all on PDO object - created and pushed in via dependency injection. The model then uses that object and executes a "save()" containing the data created in the model request. He also talks about "dumb loads", a feature that lets the modeler think it was loaded without having to know anything more than just the object's ID number.
</p>]]></description>
      <pubDate>Wed, 22 Sep 2010 09:37:46 -0500</pubDate>
    </item>
  </channel>
</rss>
