<?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"
	>
<channel>
	<title>Comments on: CodeIgniter and Doctrine</title>
	<atom:link href="http://blog.medryx.org/2008/10/04/codeigniter-and-doctrine/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.medryx.org/2008/10/04/codeigniter-and-doctrine/</link>
	<description>Observations of a physician software developer.</description>
	<pubDate>Fri, 12 Mar 2010 06:38:10 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: hamza</title>
		<link>http://blog.medryx.org/2008/10/04/codeigniter-and-doctrine/#comment-251</link>
		<dc:creator>hamza</dc:creator>
		<pubDate>Tue, 15 Dec 2009 15:38:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.medryx.org/?p=77#comment-251</guid>
		<description>Fatal error: Uncaught exception 'Doctrine_Connection_Mysql_Exception' with message 'SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'johndoe' for key 2' in C:\AppServ\www\ci_doctrine_day1\system\application\plugins\doctrine\lib\Doctrine\Connection.php:1082 Stack trace: #0 C:\AppServ\www\ci_doctrine_day1\system\application\plugins\doctrine\lib\Doctrine\Connection\Statement.php(269): Doctrine_Connection-&#62;rethrowException(Object(PDOException), Object(Doctrine_Connection_Statement)) #1 C:\AppServ\www\ci_doctrine_day1\system\application\plugins\doctrine\lib\Doctrine\Connection.php(1042): Doctrine_Connection_Statement-&#62;execute(Array) #2 C:\AppServ\www\ci_doctrine_day1\system\application\plugins\doctrine\lib\Doctrine\Connection.php(687): Doctrine_Connection-&#62;exec('INSERT INTO use...', Array) #3 C:\AppServ\www\ci_doctrine_day1\system\application\plugins\doctrine\lib\Doctrine\Connection\UnitOfWork.php(631): Doctrine_Connection-&#62;insert(Object(Doctrine_Table), Array) #4 C:\AppServ\www\ci_doctrine_day1\system\ap in C:\AppServ\www\ci_doctrine_day1\system\application\plugins\doctrine\lib\Doctrine\Connection.php on line 1082


plz tell me what does it mean.</description>
		<content:encoded><![CDATA[<p>Fatal error: Uncaught exception &#8216;Doctrine_Connection_Mysql_Exception&#8217; with message &#8216;SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry &#8216;johndoe&#8217; for key 2&#8242; in C:\AppServ\www\ci_doctrine_day1\system\application\plugins\doctrine\lib\Doctrine\Connection.php:1082 Stack trace: #0 C:\AppServ\www\ci_doctrine_day1\system\application\plugins\doctrine\lib\Doctrine\Connection\Statement.php(269): Doctrine_Connection-&gt;rethrowException(Object(PDOException), Object(Doctrine_Connection_Statement)) #1 C:\AppServ\www\ci_doctrine_day1\system\application\plugins\doctrine\lib\Doctrine\Connection.php(1042): Doctrine_Connection_Statement-&gt;execute(Array) #2 C:\AppServ\www\ci_doctrine_day1\system\application\plugins\doctrine\lib\Doctrine\Connection.php(687): Doctrine_Connection-&gt;exec(&#8217;INSERT INTO use&#8230;&#8217;, Array) #3 C:\AppServ\www\ci_doctrine_day1\system\application\plugins\doctrine\lib\Doctrine\Connection\UnitOfWork.php(631): Doctrine_Connection-&gt;insert(Object(Doctrine_Table), Array) #4 C:\AppServ\www\ci_doctrine_day1\system\ap in C:\AppServ\www\ci_doctrine_day1\system\application\plugins\doctrine\lib\Doctrine\Connection.php on line 1082</p>
<p>plz tell me what does it mean.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Codemaster Snake</title>
		<link>http://blog.medryx.org/2008/10/04/codeigniter-and-doctrine/#comment-248</link>
		<dc:creator>Codemaster Snake</dc:creator>
		<pubDate>Wed, 07 Oct 2009 19:18:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.medryx.org/?p=77#comment-248</guid>
		<description>btw here is the code of my model abc.php under modles flder

&#60;?php

class abc extends Doctrine_Record {
	function setTableDefinition() {
		//set up your model fields
	}
}</description>
		<content:encoded><![CDATA[<p>btw here is the code of my model abc.php under modles flder</p>
<p>&lt;?php</p>
<p>class abc extends Doctrine_Record {<br />
	function setTableDefinition() {<br />
		//set up your model fields<br />
	}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Codemaster Snake</title>
		<link>http://blog.medryx.org/2008/10/04/codeigniter-and-doctrine/#comment-247</link>
		<dc:creator>Codemaster Snake</dc:creator>
		<pubDate>Wed, 07 Oct 2009 19:16:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.medryx.org/?p=77#comment-247</guid>
		<description>hi there,

Great article. Well I am trying to use Doctrine as you said. But am getting an errror:

Fatal error: Class 'abc' not found in F:\wamp\www\system\application\controllers\lab.php on line 11

i am clueless. I am using 1.7.2 version of ci. I have also populated the database field in config</description>
		<content:encoded><![CDATA[<p>hi there,</p>
<p>Great article. Well I am trying to use Doctrine as you said. But am getting an errror:</p>
<p>Fatal error: Class &#8216;abc&#8217; not found in F:\wamp\www\system\application\controllers\lab.php on line 11</p>
<p>i am clueless. I am using 1.7.2 version of ci. I have also populated the database field in config</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2009-03-27 &#8212; Mior Muhammad Zaki: PHP &#38; JavaScript Programmer</title>
		<link>http://blog.medryx.org/2008/10/04/codeigniter-and-doctrine/#comment-153</link>
		<dc:creator>links for 2009-03-27 &#8212; Mior Muhammad Zaki: PHP &#38; JavaScript Programmer</dc:creator>
		<pubDate>Fri, 27 Mar 2009 17:26:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.medryx.org/?p=77#comment-153</guid>
		<description>[...]        March 28 2009    Zaki saved Stop Caching Old Files - A PHP Function and CodeIgniter and Doctrine on Delicious.   02:00 am - No [...]</description>
		<content:encoded><![CDATA[<p>[...]        March 28 2009    Zaki saved Stop Caching Old Files - A PHP Function and CodeIgniter and Doctrine on Delicious.   02:00 am - No [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dxrsm</title>
		<link>http://blog.medryx.org/2008/10/04/codeigniter-and-doctrine/#comment-128</link>
		<dc:creator>dxrsm</dc:creator>
		<pubDate>Thu, 04 Dec 2008 22:53:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.medryx.org/?p=77#comment-128</guid>
		<description>Hello and thanks for an informative post.
How would you setup the cl interface, based on that method?</description>
		<content:encoded><![CDATA[<p>Hello and thanks for an informative post.<br />
How would you setup the cl interface, based on that method?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john</title>
		<link>http://blog.medryx.org/2008/10/04/codeigniter-and-doctrine/#comment-122</link>
		<dc:creator>john</dc:creator>
		<pubDate>Thu, 20 Nov 2008 00:38:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.medryx.org/?p=77#comment-122</guid>
		<description>I'm glad I have moved on from CodeIgniter and Doctrine to Kohana, which is like CI in a lot of ways but is PHP5 and comes with great ORM...

Check it:
http://docs.kohanaphp.com/libraries/orm</description>
		<content:encoded><![CDATA[<p>I&#8217;m glad I have moved on from CodeIgniter and Doctrine to Kohana, which is like CI in a lot of ways but is PHP5 and comes with great ORM&#8230;</p>
<p>Check it:<br />
<a href="http://docs.kohanaphp.com/libraries/orm" rel="nofollow">http://docs.kohanaphp.com/libraries/orm</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: barbazul</title>
		<link>http://blog.medryx.org/2008/10/04/codeigniter-and-doctrine/#comment-118</link>
		<dc:creator>barbazul</dc:creator>
		<pubDate>Sat, 08 Nov 2008 21:48:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.medryx.org/?p=77#comment-118</guid>
		<description>I think this is a great improvement from the Wiki method as I also hate to hack the core

I was thinking nonetheless, by applying this method you're always Autoloading Doctrine, which might not be what desired in some cases. 
Wouldn't i make sense to use a plugin instead of a hook ?

In that way you can call
[code]
$this-&#62;load-&#62;plugin("doctrine");
[/code]

whenever you really need it</description>
		<content:encoded><![CDATA[<p>I think this is a great improvement from the Wiki method as I also hate to hack the core</p>
<p>I was thinking nonetheless, by applying this method you&#8217;re always Autoloading Doctrine, which might not be what desired in some cases.<br />
Wouldn&#8217;t i make sense to use a plugin instead of a hook ?</p>
<p>In that way you can call<br />
[code]<br />
$this-&gt;load-&gt;plugin(&#8221;doctrine&#8221;);<br />
[/code]</p>
<p>whenever you really need it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://blog.medryx.org/2008/10/04/codeigniter-and-doctrine/#comment-106</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Mon, 20 Oct 2008 17:28:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.medryx.org/?p=77#comment-106</guid>
		<description>Hey, I solved my problem.

Some of my doctrine models were named the same as my CI controllers.

I named my Code Ignitor controller Account, which there was also a doctrine model named Account, so these two class names were conflicting

Solved this issue by simply changing the CI controller to Account(s) with an s at the end.

Hope this helps anyone that got stuck on the same issue.

Tom</description>
		<content:encoded><![CDATA[<p>Hey, I solved my problem.</p>
<p>Some of my doctrine models were named the same as my CI controllers.</p>
<p>I named my Code Ignitor controller Account, which there was also a doctrine model named Account, so these two class names were conflicting</p>
<p>Solved this issue by simply changing the CI controller to Account(s) with an s at the end.</p>
<p>Hope this helps anyone that got stuck on the same issue.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://blog.medryx.org/2008/10/04/codeigniter-and-doctrine/#comment-104</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Mon, 20 Oct 2008 15:23:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.medryx.org/?p=77#comment-104</guid>
		<description>Hey,

I'm trying to integrate Doctrine into a new CI app I'm working on.  I'm getting the error...

Uncaught exception 'Doctrine_Table_Exception' with message 'Class "CI_Base" must be a child class of Doctrine_Record' in C:\Users\Tom\Desktop\xampplite\htdocs\gkci\lib\doctrine\Doctrine\Table.php:288

Any idea on how to fix this?

Thanks for the help!</description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>I&#8217;m trying to integrate Doctrine into a new CI app I&#8217;m working on.  I&#8217;m getting the error&#8230;</p>
<p>Uncaught exception &#8216;Doctrine_Table_Exception&#8217; with message &#8216;Class &#8220;CI_Base&#8221; must be a child class of Doctrine_Record&#8217; in C:\Users\Tom\Desktop\xampplite\htdocs\gkci\lib\doctrine\Doctrine\Table.php:288</p>
<p>Any idea on how to fix this?</p>
<p>Thanks for the help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: maulin</title>
		<link>http://blog.medryx.org/2008/10/04/codeigniter-and-doctrine/#comment-95</link>
		<dc:creator>maulin</dc:creator>
		<pubDate>Thu, 09 Oct 2008 22:48:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.medryx.org/?p=77#comment-95</guid>
		<description>So, you have a my_model.php file that extends Model? That does not appear to be a typical Doctrine model class. First, you do not need the MY_ prefix for classes in your models folder. Secondly, if you are making a Doctrine model, then you need to extend Doctrine_Record in your class. So if you did want a class called my_model, you could do:

class MyModel extends Doctrine_Rectord {
    function setTableDefinition() {
          //set up your model fields
    }
}

Then, assuming you inserted the bootstrap technique above, you could access your MyModel class in your controller using:

$model = new MyModel();

or

Doctrine::getTable('MyModel)-&gt;findAll()

You get the idea...</description>
		<content:encoded><![CDATA[<p>So, you have a my_model.php file that extends Model? That does not appear to be a typical Doctrine model class. First, you do not need the MY_ prefix for classes in your models folder. Secondly, if you are making a Doctrine model, then you need to extend Doctrine_Record in your class. So if you did want a class called my_model, you could do:</p>
<p>class MyModel extends Doctrine_Rectord {<br />
    function setTableDefinition() {<br />
          //set up your model fields<br />
    }<br />
}</p>
<p>Then, assuming you inserted the bootstrap technique above, you could access your MyModel class in your controller using:</p>
<p>$model = new MyModel();</p>
<p>or</p>
<p>Doctrine::getTable(&#8217;MyModel)->findAll()</p>
<p>You get the idea&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
