<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>free Zend Framework screencasts - Zendcasts &#187; one-to-many</title>
	<atom:link href="http://www.zendcasts.com/tag/one-to-many/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zendcasts.com</link>
	<description>free Zend Framework screencasts. Video tutorials to get you up to speed with different parts of the Zend Framework and enterprise PHP development.</description>
	<lastBuildDate>Mon, 12 Dec 2011 21:14:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Doctrine Relations and Data Fixtures</title>
		<link>http://www.zendcasts.com/doctrine-relations-and-data-fixtures/2009/12/</link>
		<comments>http://www.zendcasts.com/doctrine-relations-and-data-fixtures/2009/12/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 01:29:33 +0000</pubDate>
		<dc:creator>jon</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Doctrine]]></category>
		<category><![CDATA[data fixtures]]></category>
		<category><![CDATA[doctrine]]></category>
		<category><![CDATA[one-to-many]]></category>
		<category><![CDATA[orm]]></category>

		<guid isPermaLink="false">http://www.zendcasts.com/?p=286</guid>
		<description><![CDATA[This episode of zendcasts will cover how we can write Data Fixtures and extend our data model to include a simple one-to-many using Doctrine&#8217;s schema.yml file. I also noticed in the code of my last example that Model loading wasn&#8217;t working properly. I cover the fix in the video, however I&#8217;d like to highlight it…]]></description>
			<content:encoded><![CDATA[<p>This episode of zendcasts will cover how we can write Data Fixtures and extend our data model to include a simple one-to-many using Doctrine&#8217;s schema.yml file. I also noticed in the code of my last example that Model loading wasn&#8217;t working properly. I cover the fix in the video, however I&#8217;d like to highlight it here too. In your _initDoctrine() method, make sure you load the models:<br />
        Doctrine::loadModels($doctrineConfig['models_path']);</p>
<p>also, I&#8217;d like to extend a welcome to the folks at <a href="http://www.servergrove.com/">ServerGrove Networks</a> for sponsoring this episode of Zendcasts. ServerGrove specializes in Zend Framework hosting and they&#8217;ve offered a 10% rebate on hosting with coupon code &#8220;<strong>zc</strong>&#8220;. If you&#8217;re looking for a host, be sure to <a href="http://www.servergrove.com/">check them out</a>.</p>
<p>Grab a <a href="http://zendcasts.googlecode.com/svn/trunk/zc40-doctrine-data-fixtures-and-relations/zc40-doctrine-data-fixtures-and-relations.zip">copy of the project</a> or <a href="http://code.google.com/p/zendcasts/source/browse/#svn/trunk/zc40-doctrine-data-fixtures-and-relations">browse the repository</a>.</p>
<p><strong>Edit:</strong> I spoke to Guilherme Blanco (one of the core developers behind Doctrine) and he kindly brought up some things I should bear in mind for my Doctrine / Zend set.<br />
Doctrine&#8217;s autoloader configuration <a href="http://www.doctrine-project.org/upgrade/1_2#PEAR%20Style%20Model%20Loading%20and%20Generation">can be scaled back by doing PEAR style Model Loading (new to 1.2)</a>. Also, you can use Doctrine_Core instead of Doctrine since everything has been moved to Doctrine_Core in order to follow Zend-style namespacing.</p>
<p>lastly, you can register your own CLI tasks as part of Doctrine&#8217;s CLI script or just write them in the scripts/doctrine.php file. With this, you could have your newly-generated models placed in the necessary folders. I&#8217;ll be experimenting with this in the coming week.</p>

]]></content:encoded>
			<wfw:commentRss>http://www.zendcasts.com/doctrine-relations-and-data-fixtures/2009/12/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
<enclosure url="http://zendcasts.com/wp-content/uploads/2009/12/zc40-doctrine-data-fixtures-relations-desktop.mov" length="56798363" type="video/quicktime" />
<enclosure url="http://zendcasts.com/wp-content/uploads/2009/12/zc40-doctrine-data-fixtures-relations-iphone.m4v" length="61596238" type="video/x-m4v" />
		</item>
		<item>
		<title>One to Many with Zend_Db</title>
		<link>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/</link>
		<comments>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/#comments</comments>
		<pubDate>Mon, 04 May 2009 16:27:24 +0000</pubDate>
		<dc:creator>jon</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Zend_Db]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[layer]]></category>
		<category><![CDATA[one-to-many]]></category>
		<category><![CDATA[persistence]]></category>
		<category><![CDATA[service layer]]></category>
		<category><![CDATA[table data gateway]]></category>
		<category><![CDATA[zend_db_table]]></category>

		<guid isPermaLink="false">http://www.zendcasts.com/?p=185</guid>
		<description><![CDATA[This is part 3 in the Zend_Db series. I&#8217;m only scratching the surface with what you can do with Zend_Db_Table classes, however starting is often the hardest part. I&#8217;ve posted the code once again on the Google code for this episode, so please don&#8217;t be shy and grab a copy. There&#8217;s a lot of discussion…]]></description>
			<content:encoded><![CDATA[<p>This is part 3 in the Zend_Db series. I&#8217;m only scratching the surface with what you can do with Zend_Db_Table classes, however starting is often the hardest part. I&#8217;ve posted the code once again on the Google code for this episode, so <a href="http://code.google.com/p/zendcasts/source/browse/#svn/trunk/ep20-one-to-many-with-zend-db">please don&#8217;t be shy and grab a copy</a>.</p>
<p>There&#8217;s a lot of discussion over where and how I&#8217;m using the model in the comments, and I have a feeling that as I keep doing this, some of my controversial design decisions (whether out of ignorance, which I&#8217;ll gladly acknowledge, or professional experience) might start to surface. I&#8217;m really hoping to do a series of similar videos with <a href="http://www.doctrine-project.org">Doctrine</a>, since I find their solution to database persistence really elegant. If anyone has any suggestions, or would like access to the Google code, I would love to open up the discussion and find the &#8220;best practices&#8221; here. Personally, I would start by moving our custom made form to Zend_Form and adding some much needed validation to the project.</p>
<p>Lastly, I need to apologize for the delay, this week has been quite full due to work and personal commitments. I&#8217;m going to keep the video a week schedule as best I can. The video also deals with setting up the MySQL database, if this isn&#8217;t interesting, skip to the 12 minute mark.</p>

]]></content:encoded>
			<wfw:commentRss>http://www.zendcasts.com/one-to-many-with-zend_db/2009/05/feed/</wfw:commentRss>
		<slash:comments>36</slash:comments>
<enclosure url="http://www.zendcasts.com/wp-content/uploads/2009/05/zc20-one-to-many-with-zend-db-screen.mov" length="185839206" type="video/quicktime" />
<enclosure url="http://www.zendcasts.com/wp-content/uploads/2009/05/zc20-one-to-many-with-zend-db-iphone.m4v" length="170053000" type="text/plain" />
		</item>
	</channel>
</rss>

