<?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 for PHP and Stuff</title>
	<atom:link href="http://www.phpandstuff.com/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://www.phpandstuff.com</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>Comment on CodeIgniter and Doctrine from scratch Day 6 – Models with Relationships by Paul</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-day-6-models-relationships/comment-page-1#comment-14683</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Sat, 04 Sep 2010 17:13:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=500#comment-14683</guid>
		<description>Hi there,
first of all thanks for this great tutorial!
I am having a little trouble with something though... I want to delete a table that I created following this tutorial, because I want to change some parameters in setTableDefinition (stuff like null, notnull, unique, etc.).
But when I try to drop the table I get this error message from PhpMyAdmin:
&quot;Cannot delete or update a parent row: a foreign key constraint fails&quot;

How do I remove the foreign key constraint?</description>
		<content:encoded><![CDATA[<p>Hi there,<br />
first of all thanks for this great tutorial!<br />
I am having a little trouble with something though&#8230; I want to delete a table that I created following this tutorial, because I want to change some parameters in setTableDefinition (stuff like null, notnull, unique, etc.).<br />
But when I try to drop the table I get this error message from PhpMyAdmin:<br />
&#8220;Cannot delete or update a parent row: a foreign key constraint fails&#8221;</p>
<p>How do I remove the foreign key constraint?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CodeIgniter and Doctrine from scratch Day 7 – Fixtures &amp; Forum List by Stelimar</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-7-fixtures-forum-list/comment-page-1#comment-14625</link>
		<dc:creator>Stelimar</dc:creator>
		<pubDate>Fri, 03 Sep 2010 03:42:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=536#comment-14625</guid>
		<description>What is the advantage of loading data from a YAML file versus just using PHPMyAdmin to create the table rows? PMA is (IMO) easier, and in many cases probably faster than creating a YAML file.</description>
		<content:encoded><![CDATA[<p>What is the advantage of loading data from a YAML file versus just using PHPMyAdmin to create the table rows? PMA is (IMO) easier, and in many cases probably faster than creating a YAML file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CodeIgniter and Doctrine from scratch. Day 11 – Record Hooks by maswewe</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-11-record-hooks/comment-page-1#comment-14599</link>
		<dc:creator>maswewe</dc:creator>
		<pubDate>Thu, 02 Sep 2010 08:46:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=824#comment-14599</guid>
		<description>nice tutor.. can&#039;t wait for the next &#039;Day 12 one..&#039;</description>
		<content:encoded><![CDATA[<p>nice tutor.. can&#8217;t wait for the next &#8216;Day 12 one..&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CodeIgniter and Doctrine from scratchDay 1 &#8211; Install and Setup 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>Comment on CodeIgniter and Doctrine from scratchDay 1 &#8211; Install and Setup 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>Comment on CodeIgniter and Doctrine from scratchDay 1 &#8211; Install and Setup 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>Comment on CodeIgniter and Doctrine from scratchDay 1 &#8211; Install and Setup 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>Comment on CodeIgniter and Doctrine from scratch Day 6 – Models with Relationships by Armand van der Walt</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-day-6-models-relationships/comment-page-1#comment-14465</link>
		<dc:creator>Armand van der Walt</dc:creator>
		<pubDate>Mon, 30 Aug 2010 20:25:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=500#comment-14465</guid>
		<description>Found the problem, its related to not having assigned something to $post-&gt;Companys</description>
		<content:encoded><![CDATA[<p>Found the problem, its related to not having assigned something to $post-&gt;Companys</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CodeIgniter and Doctrine from scratch Day 6 – Models with Relationships by Armand van der Walt</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-day-6-models-relationships/comment-page-1#comment-14464</link>
		<dc:creator>Armand van der Walt</dc:creator>
		<pubDate>Mon, 30 Aug 2010 20:11:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=500#comment-14464</guid>
		<description>I have narrowed my problem down to where in the post class I had the relationship with the company.
This is the code that gives me the error:
$this-&gt;hasOne(&#039;Companys&#039;, array(
                &#039;local&#039; =&gt; &#039;companys_id&#039;,
                &#039;foreign&#039; =&gt; &#039;id&#039;
        ));</description>
		<content:encoded><![CDATA[<p>I have narrowed my problem down to where in the post class I had the relationship with the company.<br />
This is the code that gives me the error:<br />
$this-&gt;hasOne(&#8217;Companys&#8217;, array(<br />
                &#8216;local&#8217; =&gt; &#8216;companys_id&#8217;,<br />
                &#8216;foreign&#8217; =&gt; &#8216;id&#8217;<br />
        ));</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CodeIgniter and Doctrine from scratch Day 6 – Models with Relationships by Armand van der Walt</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-day-6-models-relationships/comment-page-1#comment-14463</link>
		<dc:creator>Armand van der Walt</dc:creator>
		<pubDate>Mon, 30 Aug 2010 19:55:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=500#comment-14463</guid>
		<description>Hi

Thanks for great tut.

But unfortunately I have a problem with my relations. I can&#039;t figure what the problem is, and its most likely something stupid that I did. Any help will be great.

Fatal error: Uncaught exception &#039;Doctrine_Connection_Mysql_Exception&#039; with message &#039;SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`ci_doctrine`.`post`, CONSTRAINT `post_companys_id_companys_id` FOREIGN KEY (`companys_id`) REFERENCES `companys` (`id`))&#039; in C:\wamp\www\ci_doctrine\system\application\plugins\doctrine\lib\Doctrine\Connection.php:1082 Stack trace: #0 C:\wamp\www\ci_doctrine\system\application\plugins\doctrine\lib\Doctrine\Connection\Statement.php(269): Doctrine_Connection-&gt;rethrowException(Object(PDOException), Object(Doctrine_Connection_Statement)) #1 C:\wamp\www\ci_doctrine\system\application\plugins\doctrine\lib\Doctrine\Connection.php(1042): Doctrine_Connection_Statement-&gt;execute(Array) #2 C:\wamp\www\ci_doctrine\system\application\plugins\doctrine\lib\Doctrine\Connection.php(687): Doctrine_Connection-&gt;exec(&#039;INSERT INTO pos...&#039;, Array) #3 C:\wamp\www\ci_doctrine\system\application\plugins\doctrine\lib\Doctrine\Connection\UnitOfWork.p in C:\wamp\www\ci_doctrine\system\application\plugins\doctrine\lib\Doctrine\Connection.php on line 1082

The code:
class Post extends Doctrine_Record {

	public function setTableDefinition() {
		$this-&gt;hasColumn(&#039;content&#039;, &#039;string&#039;, 65535);
		$this-&gt;hasColumn(&#039;category_id&#039;, &#039;integer&#039;, 4);
		$this-&gt;hasColumn(&#039;companys_id&#039;, &#039;integer&#039;, 4);
	}

	public function setUp() {
		$this-&gt;actAs(&#039;Timestampable&#039;);
		$this-&gt;hasOne(&#039;Category&#039;, array(
			&#039;local&#039; =&gt; &#039;category_id&#039;,
			&#039;foreign&#039; =&gt; &#039;id&#039;
		));
		$this-&gt;hasOne(&#039;Companys&#039;, array(
			&#039;local&#039; =&gt; &#039;companys_id&#039;,
			&#039;foreign&#039; =&gt; &#039;id&#039;
		));
	}

}

class Category extends Doctrine_Record {

	public function setTableDefinition() {
		$this-&gt;hasColumn(&#039;title&#039;, &#039;string&#039;, 255);
	}

	public function setUp() {
		$this-&gt;hasMany(&#039;Post as Posts&#039;, array(
			&#039;local&#039; =&gt; &#039;id&#039;,
			&#039;foreign&#039; =&gt; &#039;category_id&#039;
		));
	}
}

class Companys extends Doctrine_Record{
    public function  setTableDefinition() {
        $this-&gt;hasColumn(&#039;companyName&#039;, &#039;string&#039;, 255, array(&#039;unique&#039; =&gt; &#039;true&#039;));
        $this-&gt;hasColumn(&#039;contactPerson&#039;, &#039;string&#039;, 255);
        $this-&gt;hasColumn(&#039;contactNumber&#039;, &#039;string&#039;, 255);
        $this-&gt;hasColumn(&#039;mobileNumber&#039;, &#039;string&#039;, 255);
        $this-&gt;hasColumn(&#039;email&#039;, &#039;string&#039;, 255, array(&#039;unique&#039; =&gt; &#039;true&#039;));
        $this-&gt;hasColumn(&#039;password&#039;, &#039;string&#039;, 255);
        $this-&gt;hasColumn(&#039;category_of&#039;, &#039;string&#039;, 255);
    }

    public function  setUp() {
        $this-&gt;setTableName(&#039;companys&#039;);
        $this-&gt;actAs(&#039;Timestampable&#039;);
        $this-&gt;hasMutator(&#039;password&#039;, &#039;_encrypt_password&#039;);
        $this-&gt;hasMany(&#039;Post as Posts&#039;, array(
			&#039;local&#039; =&gt; &#039;id&#039;,
			&#039;foreign&#039; =&gt; &#039;companys_id&#039;
		));
    }

    protected function _encrypt_password($value)
    {
        $salt = &#039;#*seCret!@-*%&#039;;
        $this-&gt;_set(&#039;password&#039;, md5($salt . $value));
    }
}</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>Thanks for great tut.</p>
<p>But unfortunately I have a problem with my relations. I can&#8217;t figure what the problem is, and its most likely something stupid that I did. Any help will be great.</p>
<p>Fatal error: Uncaught exception &#8216;Doctrine_Connection_Mysql_Exception&#8217; with message &#8216;SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`ci_doctrine`.`post`, CONSTRAINT `post_companys_id_companys_id` FOREIGN KEY (`companys_id`) REFERENCES `companys` (`id`))&#8217; in C:\wamp\www\ci_doctrine\system\application\plugins\doctrine\lib\Doctrine\Connection.php:1082 Stack trace: #0 C:\wamp\www\ci_doctrine\system\application\plugins\doctrine\lib\Doctrine\Connection\Statement.php(269): Doctrine_Connection-&gt;rethrowException(Object(PDOException), Object(Doctrine_Connection_Statement)) #1 C:\wamp\www\ci_doctrine\system\application\plugins\doctrine\lib\Doctrine\Connection.php(1042): Doctrine_Connection_Statement-&gt;execute(Array) #2 C:\wamp\www\ci_doctrine\system\application\plugins\doctrine\lib\Doctrine\Connection.php(687): Doctrine_Connection-&gt;exec(&#8217;INSERT INTO pos&#8230;&#8217;, Array) #3 C:\wamp\www\ci_doctrine\system\application\plugins\doctrine\lib\Doctrine\Connection\UnitOfWork.p in C:\wamp\www\ci_doctrine\system\application\plugins\doctrine\lib\Doctrine\Connection.php on line 1082</p>
<p>The code:<br />
class Post extends Doctrine_Record {</p>
<p>	public function setTableDefinition() {<br />
		$this-&gt;hasColumn(&#8217;content&#8217;, &#8217;string&#8217;, 65535);<br />
		$this-&gt;hasColumn(&#8217;category_id&#8217;, &#8216;integer&#8217;, 4);<br />
		$this-&gt;hasColumn(&#8217;companys_id&#8217;, &#8216;integer&#8217;, 4);<br />
	}</p>
<p>	public function setUp() {<br />
		$this-&gt;actAs(&#8217;Timestampable&#8217;);<br />
		$this-&gt;hasOne(&#8217;Category&#8217;, array(<br />
			&#8216;local&#8217; =&gt; &#8216;category_id&#8217;,<br />
			&#8216;foreign&#8217; =&gt; &#8216;id&#8217;<br />
		));<br />
		$this-&gt;hasOne(&#8217;Companys&#8217;, array(<br />
			&#8216;local&#8217; =&gt; &#8216;companys_id&#8217;,<br />
			&#8216;foreign&#8217; =&gt; &#8216;id&#8217;<br />
		));<br />
	}</p>
<p>}</p>
<p>class Category extends Doctrine_Record {</p>
<p>	public function setTableDefinition() {<br />
		$this-&gt;hasColumn(&#8217;title&#8217;, &#8217;string&#8217;, 255);<br />
	}</p>
<p>	public function setUp() {<br />
		$this-&gt;hasMany(&#8217;Post as Posts&#8217;, array(<br />
			&#8216;local&#8217; =&gt; &#8216;id&#8217;,<br />
			&#8216;foreign&#8217; =&gt; &#8216;category_id&#8217;<br />
		));<br />
	}<br />
}</p>
<p>class Companys extends Doctrine_Record{<br />
    public function  setTableDefinition() {<br />
        $this-&gt;hasColumn(&#8217;companyName&#8217;, &#8217;string&#8217;, 255, array(&#8217;unique&#8217; =&gt; &#8216;true&#8217;));<br />
        $this-&gt;hasColumn(&#8217;contactPerson&#8217;, &#8217;string&#8217;, 255);<br />
        $this-&gt;hasColumn(&#8217;contactNumber&#8217;, &#8217;string&#8217;, 255);<br />
        $this-&gt;hasColumn(&#8217;mobileNumber&#8217;, &#8217;string&#8217;, 255);<br />
        $this-&gt;hasColumn(&#8217;email&#8217;, &#8217;string&#8217;, 255, array(&#8217;unique&#8217; =&gt; &#8216;true&#8217;));<br />
        $this-&gt;hasColumn(&#8217;password&#8217;, &#8217;string&#8217;, 255);<br />
        $this-&gt;hasColumn(&#8217;category_of&#8217;, &#8217;string&#8217;, 255);<br />
    }</p>
<p>    public function  setUp() {<br />
        $this-&gt;setTableName(&#8217;companys&#8217;);<br />
        $this-&gt;actAs(&#8217;Timestampable&#8217;);<br />
        $this-&gt;hasMutator(&#8217;password&#8217;, &#8216;_encrypt_password&#8217;);<br />
        $this-&gt;hasMany(&#8217;Post as Posts&#8217;, array(<br />
			&#8216;local&#8217; =&gt; &#8216;id&#8217;,<br />
			&#8216;foreign&#8217; =&gt; &#8216;companys_id&#8217;<br />
		));<br />
    }</p>
<p>    protected function _encrypt_password($value)<br />
    {<br />
        $salt = &#8216;#*seCret!@-*%&#8217;;<br />
        $this-&gt;_set(&#8217;password&#8217;, md5($salt . $value));<br />
    }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CodeIgniter and Doctrine from scratchDay 1 &#8211; Install and Setup 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>Comment on CodeIgniter and Doctrine from scratchDay 1 &#8211; Install and Setup 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>Comment on CodeIgniter and Doctrine from scratch Day 4 – User Login by hello hello</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-4-user-login/comment-page-1#comment-14273</link>
		<dc:creator>hello hello</dc:creator>
		<pubDate>Fri, 27 Aug 2010 04:26:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=418#comment-14273</guid>
		<description>Still this error is not solved..
A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\tutorial\system\application\libraries\MY_Form_validation.php:2)

Filename: helpers/url_helper.php

Line Number: 541</description>
		<content:encoded><![CDATA[<p>Still this error is not solved..<br />
A PHP Error was encountered</p>
<p>Severity: Warning</p>
<p>Message: Cannot modify header information &#8211; headers already sent by (output started at C:\xampp\htdocs\tutorial\system\application\libraries\MY_Form_validation.php:2)</p>
<p>Filename: helpers/url_helper.php</p>
<p>Line Number: 541</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CodeIgniter and Doctrine from scratch Day 4 – User Login by hello hello</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-4-user-login/comment-page-1#comment-14236</link>
		<dc:creator>hello hello</dc:creator>
		<pubDate>Thu, 26 Aug 2010 08:23:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=418#comment-14236</guid>
		<description>Hi burak, great tutorials. likes likes :)
I am going through your tutorials and i encountered with following error which I couldn&#039;t fix. 

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\tutorial\system\application\models\user.php:1)

Filename: codeigniter/Common.php

Line Number: 360

404 Page Not Found
The page you requested was not found.</description>
		<content:encoded><![CDATA[<p>Hi burak, great tutorials. likes likes <img src='http://www.phpandstuff.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
I am going through your tutorials and i encountered with following error which I couldn&#8217;t fix. </p>
<p>A PHP Error was encountered</p>
<p>Severity: Warning</p>
<p>Message: Cannot modify header information &#8211; headers already sent by (output started at C:\xampp\htdocs\tutorial\system\application\models\user.php:1)</p>
<p>Filename: codeigniter/Common.php</p>
<p>Line Number: 360</p>
<p>404 Page Not Found<br />
The page you requested was not found.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CodeIgniter and Doctrine from scratch Day 3 – User Signup Form by Davan</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-3-user-signup-form/comment-page-1#comment-14114</link>
		<dc:creator>Davan</dc:creator>
		<pubDate>Tue, 24 Aug 2010 18:12:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=348#comment-14114</guid>
		<description>Hey just in case any one was having the same problem as me. the issue was my model and controller had the same name. As a result another instance of my controller was loaded and not my model .

FYI</description>
		<content:encoded><![CDATA[<p>Hey just in case any one was having the same problem as me. the issue was my model and controller had the same name. As a result another instance of my controller was loaded and not my model .</p>
<p>FYI</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CodeIgniter and Doctrine from scratchDay 1 &#8211; Install and Setup 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>Comment on CodeIgniter and Doctrine from scratchDay 1 &#8211; Install and Setup 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>Comment on CodeIgniter from Scratch: Day 12 &#8211; Shopping Cart by Newicz</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-from-scratch-day-12-shopping-cart/comment-page-1#comment-13836</link>
		<dc:creator>Newicz</dc:creator>
		<pubDate>Sat, 21 Aug 2010 13:46:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=889#comment-13836</guid>
		<description>Hello!

I have a problem with cart library. The problem is that i can have only 4 items in it.. when i add 5 items they appear in cart-&gt;contents() but after reload it&#039;s got cut and theres only 4 of them... 

Can you help me?</description>
		<content:encoded><![CDATA[<p>Hello!</p>
<p>I have a problem with cart library. The problem is that i can have only 4 items in it.. when i add 5 items they appear in cart-&gt;contents() but after reload it&#8217;s got cut and theres only 4 of them&#8230; </p>
<p>Can you help me?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CodeIgniter and Doctrine from scratchDay 1 &#8211; Install and Setup 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>Comment on CodeIgniter and Doctrine from scratchDay 1 &#8211; Install and Setup 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>
</channel>
</rss>
