<?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 scratch Day 7 – Fixtures &amp; Forum List</title>
	<atom:link href="http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-7-fixtures-forum-list/feed" rel="self" type="application/rss+xml" />
	<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-7-fixtures-forum-list</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: 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>By: Seradon</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-7-fixtures-forum-list/comment-page-1#comment-6994</link>
		<dc:creator>Seradon</dc:creator>
		<pubDate>Sun, 20 Jun 2010 22:33:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=536#comment-6994</guid>
		<description>Doctrine::loadData(APPPATH.&#039;/fixtures&#039;);

didn&#039;t seem to work for me

but

Doctrine::loadData(base_url().&#039;fixtures&#039;);

does</description>
		<content:encoded><![CDATA[<p>Doctrine::loadData(APPPATH.&#8217;/fixtures&#8217;);</p>
<p>didn&#8217;t seem to work for me</p>
<p>but</p>
<p>Doctrine::loadData(base_url().&#8217;fixtures&#8217;);</p>
<p>does</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Best Tutorials for Web Development &#187; Blog Archive &#187; CodeIgniter and Doctrine from scratch. Day 10 – Pagination</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-7-fixtures-forum-list/comment-page-1#comment-4331</link>
		<dc:creator>Best Tutorials for Web Development &#187; Blog Archive &#187; CodeIgniter and Doctrine from scratch. Day 10 – Pagination</dc:creator>
		<pubDate>Sat, 24 Apr 2010 07:56:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=536#comment-4331</guid>
		<description>[...] Day 7: Fixtures &amp; Forum List [...]</description>
		<content:encoded><![CDATA[<p>[...] Day 7: Fixtures &amp; Forum List [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Viktor</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-7-fixtures-forum-list/comment-page-1#comment-2600</link>
		<dc:creator>Viktor</dc:creator>
		<pubDate>Thu, 11 Mar 2010 21:49:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=536#comment-2600</guid>
		<description>Hello!

First, I love your tutorials and I&#039;ve learned many new cool things.
However I&#039;m trying to set up a relationship where I want to display the current user posts. How would that look like?

Thanks in advance!</description>
		<content:encoded><![CDATA[<p>Hello!</p>
<p>First, I love your tutorials and I&#8217;ve learned many new cool things.<br />
However I&#8217;m trying to set up a relationship where I want to display the current user posts. How would that look like?</p>
<p>Thanks in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ajit</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-7-fixtures-forum-list/comment-page-1#comment-1643</link>
		<dc:creator>ajit</dc:creator>
		<pubDate>Thu, 28 Jan 2010 08:57:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=536#comment-1643</guid>
		<description>special characters does not show  in input box in codeigniter

but it&#039;s work in simple html

pl&#039;s give the answer today</description>
		<content:encoded><![CDATA[<p>special characters does not show  in input box in codeigniter</p>
<p>but it&#8217;s work in simple html</p>
<p>pl&#8217;s give the answer today</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Burak</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-7-fixtures-forum-list/comment-page-1#comment-1213</link>
		<dc:creator>Burak</dc:creator>
		<pubDate>Mon, 11 Jan 2010 02:38:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=536#comment-1213</guid>
		<description>Oh, thanks for noticing this. Looks like the date values need to be enclosed in quotes.</description>
		<content:encoded><![CDATA[<p>Oh, thanks for noticing this. Looks like the date values need to be enclosed in quotes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcello Romani</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-7-fixtures-forum-list/comment-page-1#comment-1212</link>
		<dc:creator>Marcello Romani</dc:creator>
		<pubDate>Mon, 11 Jan 2010 00:57:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=536#comment-1212</guid>
		<description>In the exception tip the essential bit is being taken away somewhere along the path... I wanted to write about PRE tags, but they&#039;ve been eaten. I&#039;ll try to repeat here (add &#039;less than&#039; and &#039;greater than&#039; signs as required):

The error message should be enclosed PRE in tags.
catch (Doctrine_Exception $e) {
echo “An exception occurred: PRE $e /PRE”;
}

Yes, you&#039;re right. The fixtures in this article are correct.
I must have made a mistake while copying the code. I typed all of the tutorial by hand, with no cut&#039;n&#039;paste; it helps me learn, but can lead to mistakes...</description>
		<content:encoded><![CDATA[<p>In the exception tip the essential bit is being taken away somewhere along the path&#8230; I wanted to write about PRE tags, but they&#8217;ve been eaten. I&#8217;ll try to repeat here (add &#8216;less than&#8217; and &#8216;greater than&#8217; signs as required):</p>
<p>The error message should be enclosed PRE in tags.<br />
catch (Doctrine_Exception $e) {<br />
echo “An exception occurred: PRE $e /PRE”;<br />
}</p>
<p>Yes, you&#8217;re right. The fixtures in this article are correct.<br />
I must have made a mistake while copying the code. I typed all of the tutorial by hand, with no cut&#8217;n'paste; it helps me learn, but can lead to mistakes&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Burak</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-7-fixtures-forum-list/comment-page-1#comment-1211</link>
		<dc:creator>Burak</dc:creator>
		<pubDate>Mon, 11 Jan 2010 00:45:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=536#comment-1211</guid>
		<description>Are there any problems with the fixture in this article? Forum section is indeed specified before the Category section. Did you have it different on your end?

Thanks for the exception handling tip, btw.</description>
		<content:encoded><![CDATA[<p>Are there any problems with the fixture in this article? Forum section is indeed specified before the Category section. Did you have it different on your end?</p>
<p>Thanks for the exception handling tip, btw.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcello Romani</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-7-fixtures-forum-list/comment-page-1#comment-1205</link>
		<dc:creator>Marcello Romani</dc:creator>
		<pubDate>Sun, 10 Jan 2010 11:42:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=536#comment-1205</guid>
		<description>The error message should be enclosed in  tags. Thus this piece of code

catch (Doctrine_Exception $e) {
echo “An exception occurred:$e”;
}

was meant to be instead:

catch (Doctrine_Exception $e) {
echo “An exception occurred:$e”;
}</description>
		<content:encoded><![CDATA[<p>The error message should be enclosed in  tags. Thus this piece of code</p>
<p>catch (Doctrine_Exception $e) {<br />
echo “An exception occurred:$e”;<br />
}</p>
<p>was meant to be instead:</p>
<p>catch (Doctrine_Exception $e) {<br />
echo “An exception occurred:$e”;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Burak</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-7-fixtures-forum-list/comment-page-1#comment-1199</link>
		<dc:creator>Burak</dc:creator>
		<pubDate>Sun, 10 Jan 2010 02:12:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=536#comment-1199</guid>
		<description>If you want BIGINT, you need 8 bytes. I guess 5 worked for you if Doctrine is rounding it up to 8.</description>
		<content:encoded><![CDATA[<p>If you want BIGINT, you need 8 bytes. I guess 5 worked for you if Doctrine is rounding it up to 8.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon P</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-7-fixtures-forum-list/comment-page-1#comment-1180</link>
		<dc:creator>Jon P</dc:creator>
		<pubDate>Thu, 07 Jan 2010 20:39:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=536#comment-1180</guid>
		<description>These tutorials are amazing!

I&#039;m having an issue with the created_at field in the fixture.  The database stores the datetime as the current datetime instead of what the fixture says.  Do you have any idea as to why this is?</description>
		<content:encoded><![CDATA[<p>These tutorials are amazing!</p>
<p>I&#8217;m having an issue with the created_at field in the fixture.  The database stores the datetime as the current datetime instead of what the fixture says.  Do you have any idea as to why this is?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcello Romani</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-7-fixtures-forum-list/comment-page-1#comment-1153</link>
		<dc:creator>Marcello Romani</dc:creator>
		<pubDate>Tue, 05 Jan 2010 15:00:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=536#comment-1153</guid>
		<description>Ok, I think I found the problem.

First, to make Doctrine&#039;s exception messages a bit more readable, I enclosed them in  regions. Instead of just calling Doctrine::loadData, I wrote:

try {
  Doctrine_Manager::connection()-&gt;execute(&#039;SET foreign_key_checks = 0&#039;);
  Doctrine::loadData(APPPATH . &#039;/fixtures&#039;);
}
catch (Doctrine_Exception $e) {
  echo &quot;An exception occurred:$e&quot;;
}

By having the error message well-formatted, I spotted where the &quot;table&quot; information is:

Doctrine_Connection_UnitOfWork-&gt;saveGraph(Object(Forum))

which appears around step #6 on the stack trace.

I checked the &quot;Forum&quot; section in the yaml file, but couldn&#039;t find anything wrong or missing. The problem stems from the fact that the Category section is specified _before_ the Forum section:

Category:
    Lounge:
        title: The CodeIgniter lounge
        Forums: [Forum_1, Forum_2]
    Dev:
        title: CodeIgniter development forums                                                            
        Forums: [Forum_3, Forum_4, Forum_5]

The data importer must create the empty Forum records to have values for the foreign key fields forum_id in the Category records, but the &quot;NOT NULL&quot; constraint on the Forum table for the &#039;title&#039; field prevents this.

Solution: define the forums before referencing them in the Category section.</description>
		<content:encoded><![CDATA[<p>Ok, I think I found the problem.</p>
<p>First, to make Doctrine&#8217;s exception messages a bit more readable, I enclosed them in  regions. Instead of just calling Doctrine::loadData, I wrote:</p>
<p>try {<br />
  Doctrine_Manager::connection()-&gt;execute(&#8217;SET foreign_key_checks = 0&#8242;);<br />
  Doctrine::loadData(APPPATH . &#8216;/fixtures&#8217;);<br />
}<br />
catch (Doctrine_Exception $e) {<br />
  echo &#8220;An exception occurred:$e&#8221;;<br />
}</p>
<p>By having the error message well-formatted, I spotted where the &#8220;table&#8221; information is:</p>
<p>Doctrine_Connection_UnitOfWork-&gt;saveGraph(Object(Forum))</p>
<p>which appears around step #6 on the stack trace.</p>
<p>I checked the &#8220;Forum&#8221; section in the yaml file, but couldn&#8217;t find anything wrong or missing. The problem stems from the fact that the Category section is specified _before_ the Forum section:</p>
<p>Category:<br />
    Lounge:<br />
        title: The CodeIgniter lounge<br />
        Forums: [Forum_1, Forum_2]<br />
    Dev:<br />
        title: CodeIgniter development forums<br />
        Forums: [Forum_3, Forum_4, Forum_5]</p>
<p>The data importer must create the empty Forum records to have values for the foreign key fields forum_id in the Category records, but the &#8220;NOT NULL&#8221; constraint on the Forum table for the &#8216;title&#8217; field prevents this.</p>
<p>Solution: define the forums before referencing them in the Category section.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcello Romani</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-7-fixtures-forum-list/comment-page-1#comment-1151</link>
		<dc:creator>Marcello Romani</dc:creator>
		<pubDate>Tue, 05 Jan 2010 14:27:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=536#comment-1151</guid>
		<description>Thanks again for the tuts.

I am encountering an error while loading data.yml. Here is the first part of the text:

Fatal error: Uncaught exception &#039;Doctrine_Connection_Mysql_Exception&#039; with message &#039;SQLSTATE[23000]: Integrity constraint violation: 1048 Column &#039;title&#039; cannot be null&#039; [...]

Unfortunately, the long message doesn&#039;t include the table name.
I&#039;m going off to the Doctrine site to see how to enable more verbose debugging. Will post here later, hoping to help others (and me in a few weeks :-)</description>
		<content:encoded><![CDATA[<p>Thanks again for the tuts.</p>
<p>I am encountering an error while loading data.yml. Here is the first part of the text:</p>
<p>Fatal error: Uncaught exception &#8216;Doctrine_Connection_Mysql_Exception&#8217; with message &#8216;SQLSTATE[23000]: Integrity constraint violation: 1048 Column &#8216;title&#8217; cannot be null&#8217; [...]</p>
<p>Unfortunately, the long message doesn&#8217;t include the table name.<br />
I&#8217;m going off to the Doctrine site to see how to enable more verbose debugging. Will post here later, hoping to help others (and me in a few weeks <img src='http://www.phpandstuff.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MarcelMarnix</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-7-fixtures-forum-list/comment-page-1#comment-1140</link>
		<dc:creator>MarcelMarnix</dc:creator>
		<pubDate>Mon, 04 Jan 2010 19:01:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=536#comment-1140</guid>
		<description>Found it.. after 4 hours fighting...
I altered doctrine_tools.php

Doctrine::generateModelsFromYaml( &#039;C:\wamp\www\ci_doctrine\application\schema\db.yml&#039;, &#039;models&#039; );

Doctrine::createTablesFromModels();

First I used order for my orders table (mysql didn&#039;t like it)

Then when creating an integer standard, biginteger is chosen, after altering doctrine_pi.php to:

// set the default primary key to be named &#039;id&#039;, biginteger, 5 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; 5));

Solved that problem as well...</description>
		<content:encoded><![CDATA[<p>Found it.. after 4 hours fighting&#8230;<br />
I altered doctrine_tools.php</p>
<p>Doctrine::generateModelsFromYaml( &#8216;C:\wamp\www\ci_doctrine\application\schema\db.yml&#8217;, &#8216;models&#8217; );</p>
<p>Doctrine::createTablesFromModels();</p>
<p>First I used order for my orders table (mysql didn&#8217;t like it)</p>
<p>Then when creating an integer standard, biginteger is chosen, after altering doctrine_pi.php to:</p>
<p>// set the default primary key to be named &#8216;id&#8217;, biginteger, 5 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; 5));</p>
<p>Solved that problem as well&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MarcelMarnix</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-7-fixtures-forum-list/comment-page-1#comment-1136</link>
		<dc:creator>MarcelMarnix</dc:creator>
		<pubDate>Mon, 04 Jan 2010 14:49:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=536#comment-1136</guid>
		<description>Hi Burak,

I&#039;ve created a yaml schema:
appication/schema/db.yml  with some tabels and detect_relations: true.

How can I generate the models from yaml using php?
(like you load your fixtures)
I can only find examples using the command line.

thanks in advance</description>
		<content:encoded><![CDATA[<p>Hi Burak,</p>
<p>I&#8217;ve created a yaml schema:<br />
appication/schema/db.yml  with some tabels and detect_relations: true.</p>
<p>How can I generate the models from yaml using php?<br />
(like you load your fixtures)<br />
I can only find examples using the command line.</p>
<p>thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ansh</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-7-fixtures-forum-list/comment-page-1#comment-950</link>
		<dc:creator>Ansh</dc:creator>
		<pubDate>Tue, 22 Dec 2009 14:47:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=536#comment-950</guid>
		<description>Solved I wasnt given variable name when i was loading View inside Submit Function. :P</description>
		<content:encoded><![CDATA[<p>Solved I wasnt given variable name when i was loading View inside Submit Function. <img src='http://www.phpandstuff.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ansh</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-7-fixtures-forum-list/comment-page-1#comment-949</link>
		<dc:creator>Ansh</dc:creator>
		<pubDate>Tue, 22 Dec 2009 14:39:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=536#comment-949</guid>
		<description>but its working fine if  i m loading tht page..and also its showing data. in same page but only when i add new records tht error come.</description>
		<content:encoded><![CDATA[<p>but its working fine if  i m loading tht page..and also its showing data. in same page but only when i add new records tht error come.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ansh</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-7-fixtures-forum-list/comment-page-1#comment-948</link>
		<dc:creator>Ansh</dc:creator>
		<pubDate>Tue, 22 Dec 2009 14:32:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=536#comment-948</guid>
		<description>i m getting after submission of view i m loading same view so i can see data i just entered.
where i m wrong ???

A PHP Error was encountered
Severity: Notice
Message: Undefined variable: mood
Filename: views/view_moods.php
Line Number: 316

this is wht i m doing in side view....
   
mood_name; ?&gt;
</description>
		<content:encoded><![CDATA[<p>i m getting after submission of view i m loading same view so i can see data i just entered.<br />
where i m wrong ???</p>
<p>A PHP Error was encountered<br />
Severity: Notice<br />
Message: Undefined variable: mood<br />
Filename: views/view_moods.php<br />
Line Number: 316</p>
<p>this is wht i m doing in side view&#8230;.</p>
<p>mood_name; ?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Iain Kay</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-7-fixtures-forum-list/comment-page-1#comment-697</link>
		<dc:creator>Iain Kay</dc:creator>
		<pubDate>Mon, 14 Dec 2009 13:35:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=536#comment-697</guid>
		<description>D&#039;oh! Don&#039;t I feel stupid!
I really should have just gone and got some sleep rather than having more coffee and swearing to myself that everything was correct after skim reading the article about 20 times.</description>
		<content:encoded><![CDATA[<p>D&#8217;oh! Don&#8217;t I feel stupid!<br />
I really should have just gone and got some sleep rather than having more coffee and swearing to myself that everything was correct after skim reading the article about 20 times.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Burak</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-7-fixtures-forum-list/comment-page-1#comment-664</link>
		<dc:creator>Burak</dc:creator>
		<pubDate>Sun, 13 Dec 2009 20:01:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=536#comment-664</guid>
		<description>The file name should be data.yml instead of data.yaml</description>
		<content:encoded><![CDATA[<p>The file name should be data.yml instead of data.yaml</p>
]]></content:encoded>
	</item>
</channel>
</rss>
