<?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 11 – Record Hooks</title>
	<atom:link href="http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-11-record-hooks/feed" rel="self" type="application/rss+xml" />
	<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-11-record-hooks</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: 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>By: krc</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-11-record-hooks/comment-page-1#comment-13310</link>
		<dc:creator>krc</dc:creator>
		<pubDate>Tue, 17 Aug 2010 08:06:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=824#comment-13310</guid>
		<description>I have CI 1.7.2 set up with Doctrine 1.2, with cli working correctly (on windows).
Give me a note, I can send You sandbox, should be the same setup at 2.0..</description>
		<content:encoded><![CDATA[<p>I have CI 1.7.2 set up with Doctrine 1.2, with cli working correctly (on windows).<br />
Give me a note, I can send You sandbox, should be the same setup at 2.0..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sajid Ali Mudassar</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-11-record-hooks/comment-page-1#comment-10590</link>
		<dc:creator>Sajid Ali Mudassar</dc:creator>
		<pubDate>Thu, 29 Jul 2010 10:44:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=824#comment-10590</guid>
		<description>&quot;This entry was posted on Monday, February 8th, 2010&quot;
Its been very long, and we are really waiting for more.... Please continue the series.

Thank you very much.</description>
		<content:encoded><![CDATA[<p>&#8220;This entry was posted on Monday, February 8th, 2010&#8243;<br />
Its been very long, and we are really waiting for more&#8230;. Please continue the series.</p>
<p>Thank you very much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Baines</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-11-record-hooks/comment-page-1#comment-9499</link>
		<dc:creator>Chris Baines</dc:creator>
		<pubDate>Wed, 21 Jul 2010 10:42:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=824#comment-9499</guid>
		<description>Any more coming soon ?? seems to have gone quiet and i was hoping these would keep coming :)</description>
		<content:encoded><![CDATA[<p>Any more coming soon ?? seems to have gone quiet and i was hoping these would keep coming <img src='http://www.phpandstuff.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-11-record-hooks/comment-page-1#comment-9443</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Tue, 20 Jul 2010 23:28:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=824#comment-9443</guid>
		<description>just tried my app in CI 2.0
moved the plugin stuff to helpers, changed a few paths, changed the auto load and it works fine</description>
		<content:encoded><![CDATA[<p>just tried my app in CI 2.0<br />
moved the plugin stuff to helpers, changed a few paths, changed the auto load and it works fine</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marios88</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-11-record-hooks/comment-page-1#comment-9375</link>
		<dc:creator>marios88</dc:creator>
		<pubDate>Tue, 20 Jul 2010 08:47:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=824#comment-9375</guid>
		<description>keep them coming!</description>
		<content:encoded><![CDATA[<p>keep them coming!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Antonio</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-11-record-hooks/comment-page-1#comment-9345</link>
		<dc:creator>Antonio</dc:creator>
		<pubDate>Mon, 19 Jul 2010 23:28:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=824#comment-9345</guid>
		<description>Thank you :)</description>
		<content:encoded><![CDATA[<p>Thank you <img src='http://www.phpandstuff.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: newtoCI</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-11-record-hooks/comment-page-1#comment-9177</link>
		<dc:creator>newtoCI</dc:creator>
		<pubDate>Sun, 18 Jul 2010 13:54:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=824#comment-9177</guid>
		<description>Thank you very much for this entire series so far. It&#039;s been great. I would love for you to continue it. I&#039;ve tried to go on ahead and add some content such as displaying user profiles, actual posts and creating new posts. However I&#039;d love to see how you implement it and compare them.

Please continue the great series burak.</description>
		<content:encoded><![CDATA[<p>Thank you very much for this entire series so far. It&#8217;s been great. I would love for you to continue it. I&#8217;ve tried to go on ahead and add some content such as displaying user profiles, actual posts and creating new posts. However I&#8217;d love to see how you implement it and compare them.</p>
<p>Please continue the great series burak.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marios88</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-11-record-hooks/comment-page-1#comment-8813</link>
		<dc:creator>marios88</dc:creator>
		<pubDate>Thu, 15 Jul 2010 13:52:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=824#comment-8813</guid>
		<description>OK. you are awesome keep the tutorials coming, this is one of the best CodeIgniter tutorials ever</description>
		<content:encoded><![CDATA[<p>OK. you are awesome keep the tutorials coming, this is one of the best CodeIgniter tutorials ever</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rui Lima</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-11-record-hooks/comment-page-1#comment-7829</link>
		<dc:creator>Rui Lima</dc:creator>
		<pubDate>Sun, 04 Jul 2010 21:54:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=824#comment-7829</guid>
		<description>All this tutorials are very cool. I was wondering if you could publish some nice and simple tutorial for integrating CI 2.0 and Doctrine 2.0.
I would like to use doctrine2 annotations and then execute the cli to generate the db from my models. But i&#039;m unable to put CI 2.0 working with doctrine 2.0.
I saw some posts on CI forum related to this topic but none could be helpful... 
I guess you would help a lot of guys out there...</description>
		<content:encoded><![CDATA[<p>All this tutorials are very cool. I was wondering if you could publish some nice and simple tutorial for integrating CI 2.0 and Doctrine 2.0.<br />
I would like to use doctrine2 annotations and then execute the cli to generate the db from my models. But i&#8217;m unable to put CI 2.0 working with doctrine 2.0.<br />
I saw some posts on CI forum related to this topic but none could be helpful&#8230;<br />
I guess you would help a lot of guys out there&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shiddiq</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-11-record-hooks/comment-page-1#comment-6937</link>
		<dc:creator>shiddiq</dc:creator>
		<pubDate>Fri, 18 Jun 2010 22:58:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=824#comment-6937</guid>
		<description>Well... still patient to see the 12 tutorial... hihihi
these tutorials are Very2 cooooolllll.... 
Tnx for these tutorials</description>
		<content:encoded><![CDATA[<p>Well&#8230; still patient to see the 12 tutorial&#8230; hihihi<br />
these tutorials are Very2 cooooolllll&#8230;.<br />
Tnx for these tutorials</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: davide</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-11-record-hooks/comment-page-1#comment-6859</link>
		<dc:creator>davide</dc:creator>
		<pubDate>Wed, 16 Jun 2010 16:10:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=824#comment-6859</guid>
		<description>can you post some example for create a Base model like an extendend  CI model

ex:

http://pastebin.com/9FEbc9y6</description>
		<content:encoded><![CDATA[<p>can you post some example for create a Base model like an extendend  CI model</p>
<p>ex:</p>
<p><a href="http://pastebin.com/9FEbc9y6" rel="nofollow">http://pastebin.com/9FEbc9y6</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seradon</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-11-record-hooks/comment-page-1#comment-6579</link>
		<dc:creator>Seradon</dc:creator>
		<pubDate>Fri, 11 Jun 2010 22:01:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=824#comment-6579</guid>
		<description>Tnx for these tutorials.
This is my first contact with CI, and it&#039;s an excellent starters guide.</description>
		<content:encoded><![CDATA[<p>Tnx for these tutorials.<br />
This is my first contact with CI, and it&#8217;s an excellent starters guide.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Burak</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-11-record-hooks/comment-page-1#comment-6287</link>
		<dc:creator>Burak</dc:creator>
		<pubDate>Mon, 07 Jun 2010 05:39:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=824#comment-6287</guid>
		<description>That&#039;s interesting :)</description>
		<content:encoded><![CDATA[<p>That&#8217;s interesting <img src='http://www.phpandstuff.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mark r</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-11-record-hooks/comment-page-1#comment-5996</link>
		<dc:creator>mark r</dc:creator>
		<pubDate>Mon, 31 May 2010 05:44:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=824#comment-5996</guid>
		<description>just on a side note.. did you know the word &quot;burak&quot; in Polish means, beet? It is also a word used to describe country folk in a slanderous way. In spite of all of that, I think you are cool and your tutorials are outstanding, please keep going, and I hope someone lets you write a book about this, you could make some serious ca$h!</description>
		<content:encoded><![CDATA[<p>just on a side note.. did you know the word &#8220;burak&#8221; in Polish means, beet? It is also a word used to describe country folk in a slanderous way. In spite of all of that, I think you are cool and your tutorials are outstanding, please keep going, and I hope someone lets you write a book about this, you could make some serious ca$h!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edtek</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-11-record-hooks/comment-page-1#comment-5426</link>
		<dc:creator>Edtek</dc:creator>
		<pubDate>Tue, 18 May 2010 13:41:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=824#comment-5426</guid>
		<description>Please i followed your tutorial about using codeigniter with doctrine and i was able to develop an application.but i am having some problem with doctrine.
I have this array structure Array
(
    [0] =&gt; Array
        (
            [id] =&gt; 1
            [preacherid] =&gt; 1
            [title] =&gt; Come Back To The Bible
            [mp3audio] =&gt; 08-0713.mp3
            [mp4video] =&gt; 08-0713.mp4
            [photo] =&gt; 08-0713.jpg
            [code][/code] =&gt; 08-0713
            [hits] =&gt; 0
            [is_active] =&gt; 1
            [created] =&gt; 2010-04-06
            [status] =&gt; M
            [userid] =&gt; 1
            [created_at] =&gt; 2010-04-06 14:51:10
            [updated_at] =&gt; 2010-04-06 14:51:07
            [Preacher] =&gt; Array
                (
                    [id] =&gt; 1
                    [firstname] =&gt; Theophilus
                    [lastname] =&gt; Adukpo
                    [is_active] =&gt; 1
                    [userid] =&gt; 1
                    [created_at] =&gt; 2010-04-06 14:49:19
                    [updated_at] =&gt; 2010-04-06 14:49:25
                )

        )
)

but i want the array structure as 
Array
(
    [0] =&gt; Array
        (
            [id] =&gt; 1
            [preacherid] =&gt; 1
            [title] =&gt; Come Back To The Bible
            [mp3audio] =&gt; 08-0713.mp3
            [mp4video] =&gt; 08-0713.mp4
            [photo] =&gt; 08-0713.jpg
            [code][/code] =&gt; 08-0713
            [hits] =&gt; 0
            [is_active] =&gt; 1
            [created] =&gt; 2010-04-06
            [status] =&gt; M
            [userid] =&gt; 1
            [created_at] =&gt; 2010-04-06 14:51:10
            [updated_at] =&gt; 2010-04-06 14:51:07
            
                    [id] =&gt; 1
                    [firstname] =&gt; Theophilus
                    [lastname] =&gt; Adukpo
                    [is_active] =&gt; 1
                    [userid] =&gt; 1
                    [created_at] =&gt; 2010-04-06 14:49:19
                    [updated_at] =&gt; 2010-04-06 14:49:25
               

        )
)

i am actually joining two tables called sermon and preacher with the following DQL

public function latestServices(){
        $status = 1;

        $query = Doctrine_Query::create()
        -&gt;select(&#039;s.id,p.firstname,p.lastname&#039;)
        -&gt;from(&#039;Sermon s&#039;)
        -&gt;innerJoin(&#039;s.Preacher p ON s.preacherid = p.id&#039;)
        -&gt;where(&#039;is_active =?&#039;,$status)
        -&gt;orderBy(&#039;created DESC&#039;)
        -&gt;limit(15);

        $latestService = $query-&gt;execute();



        return $latestService-&gt;toArray(true);

       

    }


Please can you help me out to get the second array structure?i have sat on this for weeks and no solution seems to come to mind.
Thanks</description>
		<content:encoded><![CDATA[<p>Please i followed your tutorial about using codeigniter with doctrine and i was able to develop an application.but i am having some problem with doctrine.<br />
I have this array structure Array<br />
(<br />
    [0] =&gt; Array<br />
        (<br />
            [id] =&gt; 1<br />
            [preacherid] =&gt; 1<br />
            [title] =&gt; Come Back To The Bible<br />
            [mp3audio] =&gt; 08-0713.mp3<br />
            [mp4video] =&gt; 08-0713.mp4<br />
            [photo] =&gt; 08-0713.jpg</p>
<pre class="brush: plain;">[/code] =&gt; 08-0713
            [hits] =&gt; 0
            [is_active] =&gt; 1
            [created] =&gt; 2010-04-06
            [status] =&gt; M
            [userid] =&gt; 1
            [created_at] =&gt; 2010-04-06 14:51:10
            [updated_at] =&gt; 2010-04-06 14:51:07
            [Preacher] =&gt; Array
                (
                    [id] =&gt; 1
                    [firstname] =&gt; Theophilus
                    [lastname] =&gt; Adukpo
                    [is_active] =&gt; 1
                    [userid] =&gt; 1
                    [created_at] =&gt; 2010-04-06 14:49:19
                    [updated_at] =&gt; 2010-04-06 14:49:25
                )

        )
)

but i want the array structure as
Array
(
    [0] =&gt; Array
        (
            [id] =&gt; 1
            [preacherid] =&gt; 1
            [title] =&gt; Come Back To The Bible
            [mp3audio] =&gt; 08-0713.mp3
            [mp4video] =&gt; 08-0713.mp4
            [photo] =&gt; 08-0713.jpg
            [code]</pre>
<p> =&gt; 08-0713<br />
            [hits] =&gt; 0<br />
            [is_active] =&gt; 1<br />
            [created] =&gt; 2010-04-06<br />
            [status] =&gt; M<br />
            [userid] =&gt; 1<br />
            [created_at] =&gt; 2010-04-06 14:51:10<br />
            [updated_at] =&gt; 2010-04-06 14:51:07</p>
<p>                    [id] =&gt; 1<br />
                    [firstname] =&gt; Theophilus<br />
                    [lastname] =&gt; Adukpo<br />
                    [is_active] =&gt; 1<br />
                    [userid] =&gt; 1<br />
                    [created_at] =&gt; 2010-04-06 14:49:19<br />
                    [updated_at] =&gt; 2010-04-06 14:49:25</p>
<p>        )<br />
)</p>
<p>i am actually joining two tables called sermon and preacher with the following DQL</p>
<p>public function latestServices(){<br />
        $status = 1;</p>
<p>        $query = Doctrine_Query::create()<br />
        -&gt;select('s.id,p.firstname,p.lastname')<br />
        -&gt;from('Sermon s')<br />
        -&gt;innerJoin('s.Preacher p ON s.preacherid = p.id')<br />
        -&gt;where('is_active =?',$status)<br />
        -&gt;orderBy('created DESC')<br />
        -&gt;limit(15);</p>
<p>        $latestService = $query-&gt;execute();</p>
<p>        return $latestService-&gt;toArray(true);</p>
<p>    }</p>
<p>Please can you help me out to get the second array structure?i have sat on this for weeks and no solution seems to come to mind.<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: erminio ottone</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-11-record-hooks/comment-page-1#comment-5336</link>
		<dc:creator>erminio ottone</dc:creator>
		<pubDate>Sun, 16 May 2010 16:59:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=824#comment-5336</guid>
		<description>Yeah, i love those tutorials too :)
Just hope there wil be some more :)</description>
		<content:encoded><![CDATA[<p>Yeah, i love those tutorials too <img src='http://www.phpandstuff.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Just hope there wil be some more <img src='http://www.phpandstuff.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anaxamaxan</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-11-record-hooks/comment-page-1#comment-5035</link>
		<dc:creator>Anaxamaxan</dc:creator>
		<pubDate>Thu, 06 May 2010 16:33:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=824#comment-5035</guid>
		<description>Burak I&#039;ve gone through this whole series over yesterday and today.  You&#039;re an extremely effective teacher.  Your tutorials are way better than most of the books published.  I&#039;m considering coming to EECI2010 just to attend your CI class!  Consider this a +1 to continue the series, even for a fee.  Cf Ryan Irelan&#039;s EE screencasts on PragProg.com.</description>
		<content:encoded><![CDATA[<p>Burak I&#8217;ve gone through this whole series over yesterday and today.  You&#8217;re an extremely effective teacher.  Your tutorials are way better than most of the books published.  I&#8217;m considering coming to EECI2010 just to attend your CI class!  Consider this a +1 to continue the series, even for a fee.  Cf Ryan Irelan&#8217;s EE screencasts on PragProg.com.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Pausch</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-11-record-hooks/comment-page-1#comment-4050</link>
		<dc:creator>Stefan Pausch</dc:creator>
		<pubDate>Sun, 18 Apr 2010 10:47:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=824#comment-4050</guid>
		<description>Thanks alot for this superb tutorial! - It is one of the finest i have seen. It took me two days to work through it and i need some more time to understand it in its details. It helped me to get a good overview how rapid you can develop with doctrine and how easy (and sometimes complicated) things can get. I love the datail you put into your tutorials - f.e. query optimization. I would love to see further tutorials of you. Thanks alot!</description>
		<content:encoded><![CDATA[<p>Thanks alot for this superb tutorial! &#8211; It is one of the finest i have seen. It took me two days to work through it and i need some more time to understand it in its details. It helped me to get a good overview how rapid you can develop with doctrine and how easy (and sometimes complicated) things can get. I love the datail you put into your tutorials &#8211; f.e. query optimization. I would love to see further tutorials of you. Thanks alot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Angelo</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-11-record-hooks/comment-page-1#comment-3770</link>
		<dc:creator>Angelo</dc:creator>
		<pubDate>Sun, 11 Apr 2010 11:53:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=824#comment-3770</guid>
		<description>Hey - nice one as usual.

Wouldn&#039;t Day 12 or 13 be a good opportunity to work on hierarchical data support, e.g. NestedSets?

Angelo</description>
		<content:encoded><![CDATA[<p>Hey &#8211; nice one as usual.</p>
<p>Wouldn&#8217;t Day 12 or 13 be a good opportunity to work on hierarchical data support, e.g. NestedSets?</p>
<p>Angelo</p>
]]></content:encoded>
	</item>
</channel>
</rss>
