<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Zendcasts Forum - ZC38 – Introducing Doctrine 1.2 Integration]]></title>
		<link>http://www.zendcasts.com/forum/topic/99/zc38-introducing-doctrine-12-integration/</link>
		<description><![CDATA[The most recent posts in ZC38 – Introducing Doctrine 1.2 Integration.]]></description>
		<lastBuildDate>Thu, 09 Sep 2010 01:11:34 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: ZC38 – Introducing Doctrine 1.2 Integration]]></title>
			<link>http://www.zendcasts.com/forum/post/1052/#p1052</link>
			<description><![CDATA[<p>I ran the chmod that RobJ suggested and now when I run ./doctrine build-all-reload I get...</p><p>nothing</p><p>The prompt just comes back like it ran something but no feedback from doctrine of any kind. This is rapidly becoming more trouble than it&#039;s worth.</p>]]></description>
			<author><![CDATA[dummy@example.com (Fivelow)]]></author>
			<pubDate>Thu, 09 Sep 2010 01:11:34 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/post/1052/#p1052</guid>
		</item>
		<item>
			<title><![CDATA[Re: ZC38 – Introducing Doctrine 1.2 Integration]]></title>
			<link>http://www.zendcasts.com/forum/post/1044/#p1044</link>
			<description><![CDATA[<p>@Fivelow - not sure if you&#039;re still experiencing this problem, but I found that the reason the permission denied problem is coming up when trying to use the MAMP install of php is because for some reason, the permissions aren&#039;t set to execute by default (I had the same problem).</p><p>Just run chmod 774 /Applications/MAMP/bin/php5.3/bin/php from terminal and then try the original script again</p>]]></description>
			<author><![CDATA[dummy@example.com (RobJ)]]></author>
			<pubDate>Sun, 05 Sep 2010 23:35:15 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/post/1044/#p1044</guid>
		</item>
		<item>
			<title><![CDATA[Re: ZC38 – Introducing Doctrine 1.2 Integration]]></title>
			<link>http://www.zendcasts.com/forum/post/967/#p967</link>
			<description><![CDATA[<p>OK Here&#039;s one for you.</p><p>This is copied directly from Terminal in Mac OS:</p><p>Jakes-MacBook-Pro:scripts Jake$ ./doctrine build-all-reload<br />build-all-reload - Are you sure you wish to drop your databases? (y/n)<br />y<br />build-all-reload - Couldn&#039;t locate driver named mysql<br />build-all-reload - Couldn&#039;t locate driver named mysql</p><p>I understand there is a native PHP instance running on the MAC. So I redirected php to my MAMP installation in my doctrine file. When I do this I get:</p><p>env: /Applications/MAMP/bin/php5.3/bin/php: Permission denied</p><p>So, when that didn&#039;t work I tried using an alias in .bashrc in order to direct PHP to my MAMP installation. I did the following:</p><p>alias php=&#039;/Applications/MAMP/bin/php5.3/bin/php&#039;</p><p>after doing </p><p>$source .bashrc </p><p>I ran the ./doctrine build-all-reload again and got:</p><p>Jakes-MacBook-Pro:scripts Jake$ ./doctrine build-all-reload<br />build-all-reload - Are you sure you wish to drop your databases? (y/n)<br />y<br />build-all-reload - Couldn&#039;t locate driver named mysql<br />build-all-reload - Couldn&#039;t locate driver named mysql</p><p>I&#039;m completely baffled. Anyone have any suggestions for what I should try next?</p><p>Thanks in advance...</p><p>P.S. BTW, the pdo_mysql extension IS enabled. I checked php.ini myself.</p>]]></description>
			<author><![CDATA[dummy@example.com (Fivelow)]]></author>
			<pubDate>Sun, 01 Aug 2010 06:35:05 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/post/967/#p967</guid>
		</item>
		<item>
			<title><![CDATA[Re: ZC38 – Introducing Doctrine 1.2 Integration]]></title>
			<link>http://www.zendcasts.com/forum/post/954/#p954</link>
			<description><![CDATA[<div class="quotebox"><cite>gog wrote:</cite><blockquote><p>Did anybody manage use Doctrine extensions with this setup?</p><p>My Doctrine installation works ok, but I can not regsiter extensions. I have looked at the Doctrine documentation, but everything I have tried does not work and I haven&#039;t found a single tutorial on the web explaining how to register extensions with Doctrine when using it with ZF.</p></blockquote></div><p>Had the same problem something to do with the ZF autoloader.</p><p>The hack is to drop the files from the extension into the Doctrine/Template and Doctrine/Template/Listener folders and then ZF can load them.&nbsp; &nbsp;You do not even have to register the extension in the bootstrap.&nbsp; You will have to repeat this if you update Doctrine though.</p><p>Got the Blameable extension working well, although it did need a few tweaks.&nbsp; There is an issue with loading the database if you are&nbsp; using the relations element.</p><p>Regards</p><p>Tim</p>]]></description>
			<author><![CDATA[dummy@example.com (TimSchofield)]]></author>
			<pubDate>Wed, 21 Jul 2010 21:45:38 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/post/954/#p954</guid>
		</item>
		<item>
			<title><![CDATA[Re: ZC38 – Introducing Doctrine 1.2 Integration]]></title>
			<link>http://www.zendcasts.com/forum/post/897/#p897</link>
			<description><![CDATA[<p>Hi Tamara,</p><p>Doctrine excels at handling the join operations between tables. If you have million+ record tables, an ORM won&#039;t help you with performance. Doctrine 2 is more performant and utilizes patterns that will help you cache queries and manage transactions efficiently and so I&#039;d suggest looking at that over Doctrine 1.2.</p><p>I would also suggest looking at stored procedures as a way of handling this. Also, if you have large recordset tables, there might be ways of partitioning or indexing your dataset so it&#039;s better accessed. Can you provide any more details about the type of requests you&#039;re making on the data?</p>]]></description>
			<author><![CDATA[dummy@example.com (Jon Lebensold)]]></author>
			<pubDate>Tue, 15 Jun 2010 00:44:48 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/post/897/#p897</guid>
		</item>
		<item>
			<title><![CDATA[Re: ZC38 – Introducing Doctrine 1.2 Integration]]></title>
			<link>http://www.zendcasts.com/forum/post/875/#p875</link>
			<description><![CDATA[<p>hi... i&#039;m still new with using PHP framework and i don&#039;t understand the use of using Doctrine to handle database connection. Could you elaborate the main reasons why one project needs to use doctrine ? Actually I&#039;m looking for a solution to handle large database items. Could doctrine speed things up when dealing with hundreds of million records (such as Facebook databases)?<br />If yes, maybe you could discuss on how to set up doctrine to handle large databases in the next videocast. And if no, maybe you could talk about what other solutions there are to handle such large databases.</p><p>Also, it&#039;s a great tutorial you have here and i learn a lot about using framework from it.. many thanks</p>]]></description>
			<author><![CDATA[dummy@example.com (tamara2010)]]></author>
			<pubDate>Mon, 31 May 2010 08:33:09 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/post/875/#p875</guid>
		</item>
		<item>
			<title><![CDATA[Re: ZC38 – Introducing Doctrine 1.2 Integration]]></title>
			<link>http://www.zendcasts.com/forum/post/834/#p834</link>
			<description><![CDATA[<p>Hi,</p><p>in my yaml file i have to say &quot;VARCHAR&quot; instead of &quot;string&quot; since it (Doctrine Cli) does generate a Create query where it uses String and MySQL doesn&#039;t know what to do with that and just says &quot;Syntax Error&quot;.</p><p>Why does that work in your case and not in mine? I was using Doctrine 1.2.2, but tryed 1.2.0 as well. My Zend Installation is almost the same as yours but version 1.10.7.</p><p>Anyone any Ideas or similiar problems?</p>]]></description>
			<author><![CDATA[dummy@example.com (as_lh)]]></author>
			<pubDate>Fri, 30 Apr 2010 11:26:00 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/post/834/#p834</guid>
		</item>
		<item>
			<title><![CDATA[Re: ZC38 – Introducing Doctrine 1.2 Integration]]></title>
			<link>http://www.zendcasts.com/forum/post/781/#p781</link>
			<description><![CDATA[<p>Did anybody manage use Doctrine extensions with this setup?</p><p>My Doctrine installation works ok, but I can not regsiter extensions. I have looked at the Doctrine documentation, but everything I have tried does not work and I haven&#039;t found a single tutorial on the web explaining how to register extensions with Doctrine when using it with ZF.</p>]]></description>
			<author><![CDATA[dummy@example.com (gog)]]></author>
			<pubDate>Fri, 09 Apr 2010 11:43:06 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/post/781/#p781</guid>
		</item>
		<item>
			<title><![CDATA[Re: ZC38 – Introducing Doctrine 1.2 Integration]]></title>
			<link>http://www.zendcasts.com/forum/post/615/#p615</link>
			<description><![CDATA[<div class="quotebox"><cite>n8m wrote:</cite><blockquote><p>I&#039;m using Doctrine 1.2.1 and I have a pretty weird problem with the doctrine CLI module (in the scripts folder). <br />After calling &#039;./doctrine build-all-reload&#039; I get asked: Are you sure you wish to drop your databases? (y/n), I answer with &#039;y&#039;. Well,l the dropping of the database works as expected -but sadly the YAML file (exactly like the tutorial one) is not being interpreted, nor do I get an error message. Needles to say that nothing is written to the database. Any Ideas? </p><p>Thanks in advance !</p><p>P</p></blockquote></div><p>I was having problems impleting this episode in windows 7. Well I&#039;ve found the solution in this page which covers windows and *nix.</p><p><a href="http://blog.hackix.com/2010/01/setting-up-doctrine-for-zend-framework-1-9-x/">http://blog.hackix.com/2010/01/setting- &#133; ork-1-9-x/</a></p><p>I got it working on windows.Try it.</p>]]></description>
			<author><![CDATA[dummy@example.com (serge)]]></author>
			<pubDate>Mon, 08 Feb 2010 16:40:26 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/post/615/#p615</guid>
		</item>
		<item>
			<title><![CDATA[Re: ZC38 – Introducing Doctrine 1.2 Integration]]></title>
			<link>http://www.zendcasts.com/forum/post/614/#p614</link>
			<description><![CDATA[<p>Hi everywhere, quick question for all of you: There is a hack/solution to use schemas in PostgreSQL/Oracle? I mean, in the database there is the &#039;public&#039; and &#039;enterprise&#039; .. I want to work with them. Is there any support for this concept? (Hibernate supports it wit annotations...).</p>]]></description>
			<author><![CDATA[dummy@example.com (serge)]]></author>
			<pubDate>Mon, 08 Feb 2010 16:28:56 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/post/614/#p614</guid>
		</item>
		<item>
			<title><![CDATA[Re: ZC38 – Introducing Doctrine 1.2 Integration]]></title>
			<link>http://www.zendcasts.com/forum/post/613/#p613</link>
			<description><![CDATA[<p>I&#039;m using Doctrine 1.2.1 and I have a pretty weird problem with the doctrine CLI module (in the scripts folder). <br />After calling &#039;./doctrine build-all-reload&#039; I get asked: Are you sure you wish to drop your databases? (y/n), I answer with &#039;y&#039;. Well,l the dropping of the database works as expected -but sadly the YAML file (exactly like the tutorial one) is not being interpreted, nor do I get an error message. Needles to say that nothing is written to the database. Any Ideas? </p><p>Thanks in advance !</p><p>P</p>]]></description>
			<author><![CDATA[dummy@example.com (n8m)]]></author>
			<pubDate>Sun, 07 Feb 2010 05:37:53 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/post/613/#p613</guid>
		</item>
		<item>
			<title><![CDATA[Re: ZC38 – Introducing Doctrine 1.2 Integration]]></title>
			<link>http://www.zendcasts.com/forum/post/531/#p531</link>
			<description><![CDATA[<p>Check&nbsp; the enivronment (production/development ) in application.ini</p>]]></description>
			<author><![CDATA[dummy@example.com (krishna)]]></author>
			<pubDate>Mon, 28 Dec 2009 12:16:05 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/post/531/#p531</guid>
		</item>
		<item>
			<title><![CDATA[Re: ZC38 – Introducing Doctrine 1.2 Integration]]></title>
			<link>http://www.zendcasts.com/forum/post/525/#p525</link>
			<description><![CDATA[<p>Hi Jon,</p><p>I&#039;ve gotten 1.2.1 to work, however it doesn&#039;t work fully. When I run ./doctrine build-all-reload it drops the database fine. After that it quits and I get the error:</p><p>PHP Fatal error:&nbsp; Uncaught exception &#039;Doctrine_Connection_Exception&#039; with message &#039;PDO Connection Error: SQLSTATE[42000] [1049] Unknown database &#039;more_twit&#039;&#039; in /home/more/library/Doctrine/Connection.php:474</p><p>I have the user&#039;s permissions set so it can create the database but through the cli it fails or checks to see if the database exists. Failing that it blows up. What am I doing wrong?</p><p>Jamie</p>]]></description>
			<author><![CDATA[dummy@example.com (Jamie Krasnoo)]]></author>
			<pubDate>Mon, 21 Dec 2009 07:20:00 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/post/525/#p525</guid>
		</item>
		<item>
			<title><![CDATA[Re: ZC38 – Introducing Doctrine 1.2 Integration]]></title>
			<link>http://www.zendcasts.com/forum/post/484/#p484</link>
			<description><![CDATA[<p>The developers working on Doctrine apparently have a fix for this using packages and PEAR-style autoloading. I&#039;m going to try and touch on this in the next Doctrine video.</p>]]></description>
			<author><![CDATA[dummy@example.com (Jon Lebensold)]]></author>
			<pubDate>Sat, 12 Dec 2009 06:53:52 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/post/484/#p484</guid>
		</item>
		<item>
			<title><![CDATA[Re: ZC38 – Introducing Doctrine 1.2 Integration]]></title>
			<link>http://www.zendcasts.com/forum/post/479/#p479</link>
			<description><![CDATA[<p>yes <br />i had to change the namespace of each model class in order to get it working for example <br /></p><div class="codebox"><strong>PHP Code:</strong><pre><code class="php">&nbsp;
<span class="kw2">class</span> User <span class="kw2">extends</span> BaseUser
<span class="br0">&#123;</span>
&nbsp;
<span class="br0">&#125;</span>
&nbsp;</code></pre></div><p>i change it to <br /></p><div class="codebox"><strong>PHP Code:</strong><pre><code class="php">&nbsp;
<span class="kw2">class</span> Model_User <span class="kw2">extends</span> Model_generated_BaseUser
<span class="br0">&#123;</span>
&nbsp;
<span class="br0">&#125;</span>
&nbsp;</code></pre></div><p>for example this query <br /></p><div class="codebox"><strong>PHP Code:</strong><pre><code class="php">&nbsp;
Doctrine_Query::<span class="me2">CREATE</span><span class="br0">&#40;</span><span class="br0">&#41;</span>-&gt;<span class="me1">from</span><span class="br0">&#40;</span><span class="st0">&quot;user&quot;</span><span class="br0">&#41;</span>-&gt;<span class="me1">execute</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;
&nbsp;</code></pre></div><p>would be like <br /></p><div class="codebox"><strong>PHP Code:</strong><pre><code class="php">&nbsp;
Doctrine_Query::<span class="me2">CREATE</span><span class="br0">&#40;</span><span class="br0">&#41;</span>-&gt;<span class="me1">from</span><span class="br0">&#40;</span><span class="st0">&quot;Model_user&quot;</span><span class="br0">&#41;</span>-&gt;<span class="me1">execute</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;
&nbsp;</code></pre></div><p>don&#039;t forget to change to proper namespace of each generated class <br />and <br />you will need to change the namespace each time you run the doctrine cli for example [build all reload ]</p><p>but i still face error and trying to solve it but regarding to this episode it working 100% in my pc</p><p>this was tested in doctrine 1.1.5 and its working so <br />I tried already test my code with 1.2.1 and its working 100% <img src="http://www.zendcasts.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (tawfekov)]]></author>
			<pubDate>Fri, 11 Dec 2009 13:33:34 +0000</pubDate>
			<guid>http://www.zendcasts.com/forum/post/479/#p479</guid>
		</item>
	</channel>
</rss>
