<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: CodeIgniter and Doctrine from scratchDay 1 &#8211; Install and Setup</title>
	<atom:link href="http://www.phpandstuff.com/articles/codeigniter-doctrine-from-scratch-day-1-install-and-setup/feed" rel="self" type="application/rss+xml" />
	<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-from-scratch-day-1-install-and-setup</link>
	<description>PHP, JS, CSS, jQuery, CodeIgniter, Doctrine</description>
	<lastBuildDate>Sat, 04 Sep 2010 17:13:31 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Paul</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-from-scratch-day-1-install-and-setup/comment-page-1#comment-14543</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Wed, 01 Sep 2010 08:23:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=161#comment-14543</guid>
		<description>I did what was suggested in #40 (http://www.phpandstuff.com/articles/codeigniter-doctrine-from-scratch-day-1-install-and-setup/comment-page-1#comment-658) and now the errors are gone. :)</description>
		<content:encoded><![CDATA[<p>I did what was suggested in #40 (<a href="http://www.phpandstuff.com/articles/codeigniter-doctrine-from-scratch-day-1-install-and-setup/comment-page-1#comment-658" rel="nofollow">http://www.phpandstuff.com/articles/codeigniter-doctrine-from-scratch-day-1-install-and-setup/comment-page-1#comment-658</a>) and now the errors are gone. <img src='http://www.phpandstuff.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-from-scratch-day-1-install-and-setup/comment-page-1#comment-14539</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Wed, 01 Sep 2010 06:30:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=161#comment-14539</guid>
		<description>Hi Burak,
thanks for that!
I&#039;ve just installed Doctrine in CI and created the user model and the hello controller. However, when I call it (example.com/ci/index.php/hello/world) it gives me an error:
&quot;Message: require_once(/home/paul/Projekte/example.com/ci/system/application//plugins/doctrine/lib/Doctrine.php) [function.require-once]: failed to open stream: No such file or directory

Filename: plugins/doctrine_pi.php
Line Number: 5&quot;

So in the file doctrine_pi.php I changed the paths that use APPPATH to:
(line 5) require_once APPPATH.&#039;../plugins/doctrine/lib/Doctrine.php&#039;;
(line 8) require_once APPPATH.&#039;config/database.php&#039;;
(line 31) Doctrine::loadModels(APPPATH.&#039;models&#039;);

Now when I call example.com/ci/index.php/hello/world it gives me no error message, only the expected &quot;Hello CodeIgniter!&quot;.
Then when I call example.com/ci/index.php/hello/user_test I get:

&quot;A PHP Error was encountered
Severity: Warning
Message: PDO::__construct() [pdo.--construct]: [2002] Invalid argument (trying to connect via unix://)
Filename: Doctrine/Connection.php
Line Number: 470&quot;

I checked and it seems it has something to do with the $dsn array in doctrine_pi.php.
So I went and gave it the MySQL info that I use for my CI project:
$dsn = $db[$connection_name][&#039;dbdriver&#039;] .
		&#039;://&#039; . $db[$connection_name][&#039;root&#039;] .
		&#039;:&#039; . $db[$connection_name][&#039;&#039;].
		&#039;@&#039; . $db[$connection_name][&#039;localhost&#039;] .
		&#039;/&#039; . $db[$connection_name][&#039;ci_linksdir&#039;];

But then I get these errors:
&quot;A PHP Error was encountered
Severity: Notice
Message: Undefined index: root
Filename: plugins/doctrine_pi.php
Line Number: 19

A PHP Error was encountered
Severity: Notice
Message: Undefined index:
Filename: plugins/doctrine_pi.php
Line Number: 20

A PHP Error was encountered
Severity: Notice
Message: Undefined index: localhost
Filename: plugins/doctrine_pi.php
Line Number: 21

A PHP Error was encountered
Severity: Notice
Message: Undefined index: ci_linksdir
Filename: plugins/doctrine_pi.php
Line Number: 22&quot;

I am at my wits end lol.</description>
		<content:encoded><![CDATA[<p>Hi Burak,<br />
thanks for that!<br />
I&#8217;ve just installed Doctrine in CI and created the user model and the hello controller. However, when I call it (example.com/ci/index.php/hello/world) it gives me an error:<br />
&#8220;Message: require_once(/home/paul/Projekte/example.com/ci/system/application//plugins/doctrine/lib/Doctrine.php) [function.require-once]: failed to open stream: No such file or directory</p>
<p>Filename: plugins/doctrine_pi.php<br />
Line Number: 5&#8243;</p>
<p>So in the file doctrine_pi.php I changed the paths that use APPPATH to:<br />
(line 5) require_once APPPATH.&#8217;../plugins/doctrine/lib/Doctrine.php&#8217;;<br />
(line <img src='http://www.phpandstuff.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> require_once APPPATH.&#8217;config/database.php&#8217;;<br />
(line 31) Doctrine::loadModels(APPPATH.&#8217;models&#8217;);</p>
<p>Now when I call example.com/ci/index.php/hello/world it gives me no error message, only the expected &#8220;Hello CodeIgniter!&#8221;.<br />
Then when I call example.com/ci/index.php/hello/user_test I get:</p>
<p>&#8220;A PHP Error was encountered<br />
Severity: Warning<br />
Message: PDO::__construct() [pdo.--construct]: [2002] Invalid argument (trying to connect via unix://)<br />
Filename: Doctrine/Connection.php<br />
Line Number: 470&#8243;</p>
<p>I checked and it seems it has something to do with the $dsn array in doctrine_pi.php.<br />
So I went and gave it the MySQL info that I use for my CI project:<br />
$dsn = $db[$connection_name]['dbdriver'] .<br />
		&#8216;://&#8217; . $db[$connection_name]['root'] .<br />
		&#8216;:&#8217; . $db[$connection_name][''].<br />
		&#8216;@&#8217; . $db[$connection_name]['localhost'] .<br />
		&#8216;/&#8217; . $db[$connection_name]['ci_linksdir'];</p>
<p>But then I get these errors:<br />
&#8220;A PHP Error was encountered<br />
Severity: Notice<br />
Message: Undefined index: root<br />
Filename: plugins/doctrine_pi.php<br />
Line Number: 19</p>
<p>A PHP Error was encountered<br />
Severity: Notice<br />
Message: Undefined index:<br />
Filename: plugins/doctrine_pi.php<br />
Line Number: 20</p>
<p>A PHP Error was encountered<br />
Severity: Notice<br />
Message: Undefined index: localhost<br />
Filename: plugins/doctrine_pi.php<br />
Line Number: 21</p>
<p>A PHP Error was encountered<br />
Severity: Notice<br />
Message: Undefined index: ci_linksdir<br />
Filename: plugins/doctrine_pi.php<br />
Line Number: 22&#8243;</p>
<p>I am at my wits end lol.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Burak</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-from-scratch-day-1-install-and-setup/comment-page-1#comment-14529</link>
		<dc:creator>Burak</dc:creator>
		<pubDate>Tue, 31 Aug 2010 23:31:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=161#comment-14529</guid>
		<description>Looks like things changed in the new Doctrine version. Just create the lib folder yourself, and put the Doctrine folder and Doctrine.php in it.</description>
		<content:encoded><![CDATA[<p>Looks like things changed in the new Doctrine version. Just create the lib folder yourself, and put the Doctrine folder and Doctrine.php in it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-from-scratch-day-1-install-and-setup/comment-page-1#comment-14520</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Tue, 31 Aug 2010 21:45:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=161#comment-14520</guid>
		<description>I know I must be blind and/or stupid, but when I download Doctrine I don&#039;t have a lib folder. I have a folder Doctrine-1.2.3 with Doctrine.php and a folder called Doctrine inside it. There&#039;s no folder &quot;lib&quot; inside there. :(</description>
		<content:encoded><![CDATA[<p>I know I must be blind and/or stupid, but when I download Doctrine I don&#8217;t have a lib folder. I have a folder Doctrine-1.2.3 with Doctrine.php and a folder called Doctrine inside it. There&#8217;s no folder &#8220;lib&#8221; inside there. <img src='http://www.phpandstuff.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anuraag</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-from-scratch-day-1-install-and-setup/comment-page-1#comment-14339</link>
		<dc:creator>Anuraag</dc:creator>
		<pubDate>Sat, 28 Aug 2010 07:15:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=161#comment-14339</guid>
		<description>I had the same problem - that the Base class was not being loaded with a fatal Error.

In my case it got fixed by adding following lines in doctrine_pi.php - before Doctrine::loadModels - 

$manager = Doctrine_Manager::getInstance();
$manager-&gt;setAttribute(Doctrine_Core::ATTR_MODEL_LOADING, Doctrine_Core::MODEL_LOADING_CONSERVATIVE);</description>
		<content:encoded><![CDATA[<p>I had the same problem &#8211; that the Base class was not being loaded with a fatal Error.</p>
<p>In my case it got fixed by adding following lines in doctrine_pi.php &#8211; before Doctrine::loadModels &#8211; </p>
<p>$manager = Doctrine_Manager::getInstance();<br />
$manager-&gt;setAttribute(Doctrine_Core::ATTR_MODEL_LOADING, Doctrine_Core::MODEL_LOADING_CONSERVATIVE);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iyas</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-from-scratch-day-1-install-and-setup/comment-page-1#comment-14289</link>
		<dc:creator>iyas</dc:creator>
		<pubDate>Fri, 27 Aug 2010 09:58:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=161#comment-14289</guid>
		<description>Thanks Burak....i am inspired by you.. You are a good programmer and writer. It very exciting to follow your tutorial. I am not just learning CI and Doctrine but also how to write tutorial....

THANKS</description>
		<content:encoded><![CDATA[<p>Thanks Burak&#8230;.i am inspired by you.. You are a good programmer and writer. It very exciting to follow your tutorial. I am not just learning CI and Doctrine but also how to write tutorial&#8230;.</p>
<p>THANKS</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oli</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-from-scratch-day-1-install-and-setup/comment-page-1#comment-14061</link>
		<dc:creator>Oli</dc:creator>
		<pubDate>Tue, 24 Aug 2010 02:48:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=161#comment-14061</guid>
		<description>PDO is enable and i have the following message. (I&#039;m running on Vista)


Fatal error: Uncaught exception &#039;Doctrine_Manager_Exception&#039; with message &#039;Could not parse dsn&#039; in D:\wamp\www\POOL_CI\system\application\plugins\doctrine\lib\Doctrine\Manager.php:419 Stack trace: #0 D:\wamp\www\POOL_CI\system\application\plugins\doctrine\lib\Doctrine\Manager.php(434): Doctrine_Manager-&gt;_buildDsnPartsArray(&#039;://root:@localh...&#039;) #1 D:\wamp\www\POOL_CI\system\application\plugins\doctrine\lib\Doctrine\Manager.php(304): Doctrine_Manager-&gt;parseDsn(&#039;://root:@localh...&#039;) #2 D:\wamp\www\POOL_CI\system\application\plugins\doctrine\lib\Doctrine\Manager.php(266): Doctrine_Manager-&gt;openConnection(&#039;://root:@localh...&#039;, &#039;default&#039;) #3 D:\wamp\www\POOL_CI\system\application\plugins\doctrine_pi.php(24): Doctrine_Manager::connection(&#039;://root:@localh...&#039;, &#039;default&#039;) #4 D:\wamp\www\POOL_CI\system\libraries\Loader.php(466): include_once(&#039;D:\wamp\www\POO...&#039;) #5 D:\wamp\www\POOL_CI\system\libraries\Loader.php(968): CI_Loader-&gt;plugin(Array) #6 D:\wamp\www\POOL_CI\system\libraries\Controller.php(83): CI_Loader-&gt;_ci_autoloader() in D:\wamp\www\POOL_CI\system\application\plugins\doctrine\lib\Doctrine\Manager.php on line 419</description>
		<content:encoded><![CDATA[<p>PDO is enable and i have the following message. (I&#8217;m running on Vista)</p>
<p>Fatal error: Uncaught exception &#8216;Doctrine_Manager_Exception&#8217; with message &#8216;Could not parse dsn&#8217; in D:\wamp\www\POOL_CI\system\application\plugins\doctrine\lib\Doctrine\Manager.php:419 Stack trace: #0 D:\wamp\www\POOL_CI\system\application\plugins\doctrine\lib\Doctrine\Manager.php(434): Doctrine_Manager-&gt;_buildDsnPartsArray(&#8217;://root:@localh&#8230;&#8217;) #1 D:\wamp\www\POOL_CI\system\application\plugins\doctrine\lib\Doctrine\Manager.php(304): Doctrine_Manager-&gt;parseDsn(&#8217;://root:@localh&#8230;&#8217;) #2 D:\wamp\www\POOL_CI\system\application\plugins\doctrine\lib\Doctrine\Manager.php(266): Doctrine_Manager-&gt;openConnection(&#8217;://root:@localh&#8230;&#8217;, &#8216;default&#8217;) #3 D:\wamp\www\POOL_CI\system\application\plugins\doctrine_pi.php(24): Doctrine_Manager::connection(&#8217;://root:@localh&#8230;&#8217;, &#8216;default&#8217;) #4 D:\wamp\www\POOL_CI\system\libraries\Loader.php(466): include_once(&#8217;D:\wamp\www\POO&#8230;&#8217;) #5 D:\wamp\www\POOL_CI\system\libraries\Loader.php(968): CI_Loader-&gt;plugin(Array) #6 D:\wamp\www\POOL_CI\system\libraries\Controller.php(83): CI_Loader-&gt;_ci_autoloader() in D:\wamp\www\POOL_CI\system\application\plugins\doctrine\lib\Doctrine\Manager.php on line 419</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Boozox &#187; 20 Consejos para Mejorar tu MySQL que quizás no conocías</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-from-scratch-day-1-install-and-setup/comment-page-1#comment-14014</link>
		<dc:creator>Boozox &#187; 20 Consejos para Mejorar tu MySQL que quizás no conocías</dc:creator>
		<pubDate>Mon, 23 Aug 2010 11:26:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=161#comment-14014</guid>
		<description>[...] un ORM recomendable para PHP es Doctrine. Puedes leer cómo instalarlo en este artículo [...]</description>
		<content:encoded><![CDATA[<p>[...] un ORM recomendable para PHP es Doctrine. Puedes leer cómo instalarlo en este artículo [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Faz</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-from-scratch-day-1-install-and-setup/comment-page-1#comment-13486</link>
		<dc:creator>Faz</dc:creator>
		<pubDate>Wed, 18 Aug 2010 14:50:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=161#comment-13486</guid>
		<description>Still trying to figure out what is going wrong its seems like my project is not calling the plugins/doctrine_pi.php file at all, by simple debugging I can see the config/database.php is also not called

Can I force this somehow in Linux?</description>
		<content:encoded><![CDATA[<p>Still trying to figure out what is going wrong its seems like my project is not calling the plugins/doctrine_pi.php file at all, by simple debugging I can see the config/database.php is also not called</p>
<p>Can I force this somehow in Linux?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Faz</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-from-scratch-day-1-install-and-setup/comment-page-1#comment-13461</link>
		<dc:creator>Faz</dc:creator>
		<pubDate>Wed, 18 Aug 2010 09:00:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=161#comment-13461</guid>
		<description>Great series Burak!, I have managed to do my own little site using CI with doctrine now, however I developed it on wamp on my local machine but need to host it on a linux red hat environment

When I transferred my project (setup as is on WAMP) to LAMP my site does not display at all. I just get a blank page 

no errors showing even if I try going to different url paths, removed htaccess to elimate that as a problem still nothing displays, I get the feeling my models are not being loaded or there is no database connection being made at all?

Is there something I need to set up differently for doctrine/ci to work on linux? Also my hosting server only has PHP 5.2.13 not 5.2.3 as stated on doctrine but this doesnt seem to matter on my local machine which is using 5.2.11?

Any help/suggestions would be greately appreciated
Thanks</description>
		<content:encoded><![CDATA[<p>Great series Burak!, I have managed to do my own little site using CI with doctrine now, however I developed it on wamp on my local machine but need to host it on a linux red hat environment</p>
<p>When I transferred my project (setup as is on WAMP) to LAMP my site does not display at all. I just get a blank page </p>
<p>no errors showing even if I try going to different url paths, removed htaccess to elimate that as a problem still nothing displays, I get the feeling my models are not being loaded or there is no database connection being made at all?</p>
<p>Is there something I need to set up differently for doctrine/ci to work on linux? Also my hosting server only has PHP 5.2.13 not 5.2.3 as stated on doctrine but this doesnt seem to matter on my local machine which is using 5.2.11?</p>
<p>Any help/suggestions would be greately appreciated<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Antonio</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-from-scratch-day-1-install-and-setup/comment-page-1#comment-9343</link>
		<dc:creator>Antonio</dc:creator>
		<pubDate>Mon, 19 Jul 2010 23:12:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=161#comment-9343</guid>
		<description>@Dean

Instead of using localhost, try:

$db[&#039;default&#039;][&#039;hostname&#039;] = &quot;127.0.0.1&quot;;

inside your database.php config file.</description>
		<content:encoded><![CDATA[<p>@Dean</p>
<p>Instead of using localhost, try:</p>
<p>$db['default']['hostname'] = &#8220;127.0.0.1&#8243;;</p>
<p>inside your database.php config file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RexDomz</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-from-scratch-day-1-install-and-setup/comment-page-1#comment-9246</link>
		<dc:creator>RexDomz</dc:creator>
		<pubDate>Mon, 19 Jul 2010 03:24:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=161#comment-9246</guid>
		<description>I&#039;m just new to php particularly CI. But i guess reading is merely good for those individuals that have enough time to explore. And i agree with your suggestions. But for me this tuts is pretty good and i learned a lot of this stuff! Thank you! 
For the author:
   Can you give us the list of the class and methods for doctrine and also more examples? I really lyk your tuts!</description>
		<content:encoded><![CDATA[<p>I&#8217;m just new to php particularly CI. But i guess reading is merely good for those individuals that have enough time to explore. And i agree with your suggestions. But for me this tuts is pretty good and i learned a lot of this stuff! Thank you!<br />
For the author:<br />
   Can you give us the list of the class and methods for doctrine and also more examples? I really lyk your tuts!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dean</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-from-scratch-day-1-install-and-setup/comment-page-1#comment-8274</link>
		<dc:creator>Dean</dc:creator>
		<pubDate>Sat, 10 Jul 2010 00:16:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=161#comment-8274</guid>
		<description>Love the tutorial! I just have one problem: Is there any possible way to get Doctrine to work with a unix socket other than going in and hacking the Doctrine files? 

For example, my host requires that I connect to my databases by using this: localhost:/tmp/mysql5.sock

This causes issues with Doctrine in the Connection.php file. I&#039;ve tried mapping out the socket in both the php.ini file and .htaccess file, but this doesn&#039;t work. Do you have any suggestions, please?</description>
		<content:encoded><![CDATA[<p>Love the tutorial! I just have one problem: Is there any possible way to get Doctrine to work with a unix socket other than going in and hacking the Doctrine files? </p>
<p>For example, my host requires that I connect to my databases by using this: localhost:/tmp/mysql5.sock</p>
<p>This causes issues with Doctrine in the Connection.php file. I&#8217;ve tried mapping out the socket in both the php.ini file and .htaccess file, but this doesn&#8217;t work. Do you have any suggestions, please?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ajaz ali</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-from-scratch-day-1-install-and-setup/comment-page-1#comment-8225</link>
		<dc:creator>ajaz ali</dc:creator>
		<pubDate>Fri, 09 Jul 2010 07:29:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=161#comment-8225</guid>
		<description>there should be a proper error msg  displayed if we try to insert duplicate value for unique column like usernme in first practice of crash course</description>
		<content:encoded><![CDATA[<p>there should be a proper error msg  displayed if we try to insert duplicate value for unique column like usernme in first practice of crash course</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-from-scratch-day-1-install-and-setup/comment-page-1#comment-8002</link>
		<dc:creator>John</dc:creator>
		<pubDate>Tue, 06 Jul 2010 16:59:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=161#comment-8002</guid>
		<description>Hi Burak,

Does this work with doctrine2? Or do you have any plans to update the series if not?

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi Burak,</p>
<p>Does this work with doctrine2? Or do you have any plans to update the series if not?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vinícius</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-from-scratch-day-1-install-and-setup/comment-page-1#comment-7384</link>
		<dc:creator>Vinícius</dc:creator>
		<pubDate>Tue, 29 Jun 2010 15:31:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=161#comment-7384</guid>
		<description>Hello, congratz for the great tutorial!

But it&#039;s still not clear in my mind why doctrine is better than CI Active Record native class, what kind of limited functionalities you mean?

Thanks!</description>
		<content:encoded><![CDATA[<p>Hello, congratz for the great tutorial!</p>
<p>But it&#8217;s still not clear in my mind why doctrine is better than CI Active Record native class, what kind of limited functionalities you mean?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Wanless</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-from-scratch-day-1-install-and-setup/comment-page-1#comment-7116</link>
		<dc:creator>Steve Wanless</dc:creator>
		<pubDate>Wed, 23 Jun 2010 18:29:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=161#comment-7116</guid>
		<description>Hi, Can you help with an error I am getting in doctrine_pi.php

Fatal error: Undefined class constant &#039;ATTR_AUTO_ACCESSOR_OVERRIDE&#039; ...

If I comment out the section below &quot;(OPTIONAL) CONFIGURATION BELOW&quot; it mostly works but fails when I tried to use a mutator (as I expected it would). 

Otherwise it seems to be working fine for me on PHP 5.2.13

Would this be a PHP version problem? Do I specifically need 5.2.3 for all of this to work?</description>
		<content:encoded><![CDATA[<p>Hi, Can you help with an error I am getting in doctrine_pi.php</p>
<p>Fatal error: Undefined class constant &#8216;ATTR_AUTO_ACCESSOR_OVERRIDE&#8217; &#8230;</p>
<p>If I comment out the section below &#8220;(OPTIONAL) CONFIGURATION BELOW&#8221; it mostly works but fails when I tried to use a mutator (as I expected it would). </p>
<p>Otherwise it seems to be working fine for me on PHP 5.2.13</p>
<p>Would this be a PHP version problem? Do I specifically need 5.2.3 for all of this to work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcin</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-from-scratch-day-1-install-and-setup/comment-page-1#comment-7052</link>
		<dc:creator>Marcin</dc:creator>
		<pubDate>Tue, 22 Jun 2010 10:33:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=161#comment-7052</guid>
		<description>Really great tutorial, thank you!</description>
		<content:encoded><![CDATA[<p>Really great tutorial, thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Burak</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-from-scratch-day-1-install-and-setup/comment-page-1#comment-7004</link>
		<dc:creator>Burak</dc:creator>
		<pubDate>Mon, 21 Jun 2010 07:02:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=161#comment-7004</guid>
		<description>Are you running PHP 4? This requires PHP 5.2.3+</description>
		<content:encoded><![CDATA[<p>Are you running PHP 4? This requires PHP 5.2.3+</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Suseno</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-from-scratch-day-1-install-and-setup/comment-page-1#comment-7003</link>
		<dc:creator>Suseno</dc:creator>
		<pubDate>Mon, 21 Jun 2010 06:39:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=161#comment-7003</guid>
		<description>hai mr. burak

i&#039;m is problem in

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in D:\AppServ\www\suse\system\plugins\doctrine_pi.php  on line 35

 $db_values) {
	
	// first we must convert to dsn format
	$dsn = $db[$connection_name][&#039;dbdriver&#039;] . 
		&#039;://&#039; . $db[$connection_name][&#039;username&#039;] . 
		&#039;:&#039; . $db[$connection_name][&#039;password&#039;]. 
		&#039;@&#039; . $db[$connection_name][&#039;hostname&#039;] . 
		&#039;/&#039; . $db[$connection_name][&#039;database&#039;];

	Doctrine_Manager::connection($dsn,$connection_name);
}

// CodeIgniter&#039;s Model class needs to be loaded
require_once BASEPATH.&#039;/libraries/Model.php&#039;;

// telling Doctrine where our models are located
Doctrine::loadModels(APPPATH.&#039;/models&#039;);


// (OPTIONAL) CONFIGURATION BELOW

// this will allow us to use &quot;mutators&quot;
Doctrine_Manager::getInstance()-&gt;setAttribute(
	Doctrine::ATTR_AUTO_ACCESSOR_OVERRIDE, true);

// this sets all table columns to notnull and unsigned (for ints) by default
Doctrine_Manager::getInstance()-&gt;setAttribute(
	Doctrine::ATTR_DEFAULT_COLUMN_OPTIONS,
	array(&#039;notnull&#039; =&gt; true, &#039;unsigned&#039; =&gt; true));
	
// set the default primary key to be named &#039;id&#039;, integer, 4 bytes
Doctrine_Manager::getInstance()-&gt;setAttribute(
	Doctrine::ATTR_DEFAULT_IDENTIFIER_OPTIONS,
	array(&#039;name&#039; =&gt; &#039;id&#039;, &#039;type&#039; =&gt; &#039;integer&#039;, &#039;length&#039; =&gt; 4));

//////////////////////////////
autoload.php
/////////////////////////////
because when I change autoload.php

$autoload[&#039;plugin&#039;] = array(&#039;doctrine&#039;);</description>
		<content:encoded><![CDATA[<p>hai mr. burak</p>
<p>i&#8217;m is problem in</p>
<p>Parse error: syntax error, unexpected T_OBJECT_OPERATOR in D:\AppServ\www\suse\system\plugins\doctrine_pi.php  on line 35</p>
<p> $db_values) {</p>
<p>	// first we must convert to dsn format<br />
	$dsn = $db[$connection_name]['dbdriver'] .<br />
		&#8216;://&#8217; . $db[$connection_name]['username'] .<br />
		&#8216;:&#8217; . $db[$connection_name]['password'].<br />
		&#8216;@&#8217; . $db[$connection_name]['hostname'] .<br />
		&#8216;/&#8217; . $db[$connection_name]['database'];</p>
<p>	Doctrine_Manager::connection($dsn,$connection_name);<br />
}</p>
<p>// CodeIgniter&#8217;s Model class needs to be loaded<br />
require_once BASEPATH.&#8217;/libraries/Model.php&#8217;;</p>
<p>// telling Doctrine where our models are located<br />
Doctrine::loadModels(APPPATH.&#8217;/models&#8217;);</p>
<p>// (OPTIONAL) CONFIGURATION BELOW</p>
<p>// this will allow us to use &#8220;mutators&#8221;<br />
Doctrine_Manager::getInstance()-&gt;setAttribute(<br />
	Doctrine::ATTR_AUTO_ACCESSOR_OVERRIDE, true);</p>
<p>// this sets all table columns to notnull and unsigned (for ints) by default<br />
Doctrine_Manager::getInstance()-&gt;setAttribute(<br />
	Doctrine::ATTR_DEFAULT_COLUMN_OPTIONS,<br />
	array(&#8217;notnull&#8217; =&gt; true, &#8216;unsigned&#8217; =&gt; true));</p>
<p>// set the default primary key to be named &#8216;id&#8217;, integer, 4 bytes<br />
Doctrine_Manager::getInstance()-&gt;setAttribute(<br />
	Doctrine::ATTR_DEFAULT_IDENTIFIER_OPTIONS,<br />
	array(&#8217;name&#8217; =&gt; &#8216;id&#8217;, &#8216;type&#8217; =&gt; &#8216;integer&#8217;, &#8216;length&#8217; =&gt; 4));</p>
<p>//////////////////////////////<br />
autoload.php<br />
/////////////////////////////<br />
because when I change autoload.php</p>
<p>$autoload['plugin'] = array(&#8217;doctrine&#8217;);</p>
]]></content:encoded>
	</item>
</channel>
</rss>
