<?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: Writing a Zend_Auth_Adapter with Doctrine</title>
	<atom:link href="http://www.zendcasts.com/writing-a-zend_auth_adapter-with-doctrine/2010/01/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zendcasts.com/writing-a-zend_auth_adapter-with-doctrine/2010/01/</link>
	<description>free Zend Framework screencasts. Video tutorials to get you up to speed with different parts of the Zend Framework and enterprise PHP development.</description>
	<lastBuildDate>Wed, 01 Feb 2012 00:49:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: jon</title>
		<link>http://www.zendcasts.com/writing-a-zend_auth_adapter-with-doctrine/2010/01/comment-page-1/#comment-16147</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Sun, 13 Mar 2011 04:59:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=301#comment-16147</guid>
		<description>@Nicolas: the less software we have to write, the more interesting software we have time to write :) 

These tools are intimidating at first (I feel the same way sometimes), but they really do make your life a lot easier in the long run. When you&#039;re using Doctrine, you have a single place to go if you want to change your database schema. If you&#039;re unit testing your code (which you should), without Doctrine, you would have at least 3 different places to reflect that change (test db, dev db, models). That&#039;s a lot of pointless running around every time you want to add a column!</description>
		<content:encoded><![CDATA[<p>@Nicolas: the less software we have to write, the more interesting software we have time to write <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<p>These tools are intimidating at first (I feel the same way sometimes), but they really do make your life a lot easier in the long run. When you&#8217;re using Doctrine, you have a single place to go if you want to change your database schema. If you&#8217;re unit testing your code (which you should), without Doctrine, you would have at least 3 different places to reflect that change (test db, dev db, models). That&#8217;s a lot of pointless running around every time you want to add a column!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nicolas</title>
		<link>http://www.zendcasts.com/writing-a-zend_auth_adapter-with-doctrine/2010/01/comment-page-1/#comment-16098</link>
		<dc:creator>nicolas</dc:creator>
		<pubDate>Fri, 11 Mar 2011 16:42:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=301#comment-16098</guid>
		<description>why you use &quot;docorine&quot; to generate a record in the database? isn&#039;t easier to just input the record in your phpAdmin? 
If you use docorine, you generate another degree of complexity to my brain!! I hate complexity!</description>
		<content:encoded><![CDATA[<p>why you use &#8220;docorine&#8221; to generate a record in the database? isn&#8217;t easier to just input the record in your phpAdmin?<br />
If you use docorine, you generate another degree of complexity to my brain!! I hate complexity!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nicolas</title>
		<link>http://www.zendcasts.com/writing-a-zend_auth_adapter-with-doctrine/2010/01/comment-page-1/#comment-16097</link>
		<dc:creator>nicolas</dc:creator>
		<pubDate>Fri, 11 Mar 2011 16:36:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=301#comment-16097</guid>
		<description>people want to introduce so many tools? like docorine, Apache Ant. They are really really confuse my small brain!!!!!!!!!!!!
Please limit the scope!!!</description>
		<content:encoded><![CDATA[<p>people want to introduce so many tools? like docorine, Apache Ant. They are really really confuse my small brain!!!!!!!!!!!!<br />
Please limit the scope!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hari K T</title>
		<link>http://www.zendcasts.com/writing-a-zend_auth_adapter-with-doctrine/2010/01/comment-page-1/#comment-11356</link>
		<dc:creator>Hari K T</dc:creator>
		<pubDate>Thu, 21 Oct 2010 14:13:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=301#comment-11356</guid>
		<description>@szsoftware 

That&#039;s good :) . I was learning doctrine . So the solution was at that time what I thought . 
Thanks for notifying me . Will look more into it . Brought the Doctrine Book ;) now .</description>
		<content:encoded><![CDATA[<p>@szsoftware </p>
<p>That&#8217;s good <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  . I was learning doctrine . So the solution was at that time what I thought .<br />
Thanks for notifying me . Will look more into it . Brought the Doctrine Book <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  now .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: szsoftware</title>
		<link>http://www.zendcasts.com/writing-a-zend_auth_adapter-with-doctrine/2010/01/comment-page-1/#comment-11327</link>
		<dc:creator>szsoftware</dc:creator>
		<pubDate>Wed, 20 Oct 2010 22:56:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=301#comment-11327</guid>
		<description>@Hari KT
I just read over http://www.doctrine-project.org/projects/orm/1.2/docs/manual/yaml-schema-files%3Afeatures-%26-examples/1_1#packages

and remembered the module issue here.
The above mentioned article describes how to specify the doctrine model targets in file system via schema yaml file and the package option.

CU</description>
		<content:encoded><![CDATA[<p>@Hari KT<br />
I just read over <a href="http://www.doctrine-project.org/projects/orm/1.2/docs/manual/yaml-schema-files%3Afeatures-%26-examples/1_1#packages" rel="nofollow">http://www.doctrine-project.org/projects/orm/1.2/docs/manual/yaml-schema-files%3Afeatures-%26-examples/1_1#packages</a></p>
<p>and remembered the module issue here.<br />
The above mentioned article describes how to specify the doctrine model targets in file system via schema yaml file and the package option.</p>
<p>CU</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zend Auth adapter with Doctrine &#171; SD Tracker</title>
		<link>http://www.zendcasts.com/writing-a-zend_auth_adapter-with-doctrine/2010/01/comment-page-1/#comment-11063</link>
		<dc:creator>Zend Auth adapter with Doctrine &#171; SD Tracker</dc:creator>
		<pubDate>Sat, 09 Oct 2010 21:03:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=301#comment-11063</guid>
		<description>[...] Have just found this: http://www.zendcasts.com/writing-a-zend_auth_adapter-with-doctrine/2010/01/ [...]</description>
		<content:encoded><![CDATA[<p>[...] Have just found this: <a href="http://www.zendcasts.com/writing-a-zend_auth_adapter-with-doctrine/2010/01/" rel="nofollow">http://www.zendcasts.com/writing-a-zend_auth_adapter-with-doctrine/2010/01/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xnyl</title>
		<link>http://www.zendcasts.com/writing-a-zend_auth_adapter-with-doctrine/2010/01/comment-page-1/#comment-10272</link>
		<dc:creator>xnyl</dc:creator>
		<pubDate>Fri, 10 Sep 2010 04:37:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=301#comment-10272</guid>
		<description>@Francis
You solve my problem.(with sql export and import encoding in sequel pro)

Thank&#039;s a lot:)</description>
		<content:encoded><![CDATA[<p>@Francis<br />
You solve my problem.(with sql export and import encoding in sequel pro)</p>
<p>Thank&#8217;s a lot:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hari K T</title>
		<link>http://www.zendcasts.com/writing-a-zend_auth_adapter-with-doctrine/2010/01/comment-page-1/#comment-9934</link>
		<dc:creator>Hari K T</dc:creator>
		<pubDate>Sun, 29 Aug 2010 17:49:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=301#comment-9934</guid>
		<description>For module specific doctrine models I have came up with a solution for doctrine.php .

You guys can check it out at http://harikt.com/content/integrating-doctrine-zendframework-modules . 

Let me know your comments :)</description>
		<content:encoded><![CDATA[<p>For module specific doctrine models I have came up with a solution for doctrine.php .</p>
<p>You guys can check it out at <a href="http://harikt.com/content/integrating-doctrine-zendframework-modules" rel="nofollow">http://harikt.com/content/integrating-doctrine-zendframework-modules</a> . </p>
<p>Let me know your comments <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hari K T</title>
		<link>http://www.zendcasts.com/writing-a-zend_auth_adapter-with-doctrine/2010/01/comment-page-1/#comment-9915</link>
		<dc:creator>Hari K T</dc:creator>
		<pubDate>Sat, 28 Aug 2010 19:13:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=301#comment-9915</guid>
		<description>Great :) . You was looking for how to configure modules right ?
I am not sure whether this will completely work . I was just playing around it . 
This is something I hacked after seeing your video . I will be trying to do more tricks on it . And as an experienced person you may be able to refactor it  . Not sure whether you have tried and dropped it though .

here it comes . After the  config is loaded in doctrine.ph 

$config = $application-&gt;getOption(&#039;doctrine&#039;);

add the below code

&lt;code&gt;
$length = strlen( APPLICATION_PATH );
if(is_array($_SERVER[&#039;argv&#039;]) ) {
    $modulePosition = array_keys( $_SERVER[&#039;argv&#039;] , &#039;module&#039;);
    if ( !empty( $modulePosition ) ) {
        $moduleName = $_SERVER[&#039;argv&#039;][$modulePosition[0]+1];
        if ( is_dir( APPLICATION_PATH . &quot;/modules/$moduleName&quot; ) ) {
            foreach( $config as $key =&gt; $value ) {
                $config[$key] = APPLICATION_PATH . &quot;/modules/$moduleName&quot; . substr_replace($value, &#039;&#039;, 0, $length);
            }
        }
    }
}
&lt;/code&gt;

I assume people will be calling like  ./doctrine test module blog

Not sure whether doctrine has something like module calling . Hope not , else we can change . I am just playing so may be wrong too . I am interested to hear what you think about this .

Thanks

Hari K T</description>
		<content:encoded><![CDATA[<p>Great <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  . You was looking for how to configure modules right ?<br />
I am not sure whether this will completely work . I was just playing around it .<br />
This is something I hacked after seeing your video . I will be trying to do more tricks on it . And as an experienced person you may be able to refactor it  . Not sure whether you have tried and dropped it though .</p>
<p>here it comes . After the  config is loaded in doctrine.ph </p>
<p>$config = $application-&gt;getOption(&#8216;doctrine&#8217;);</p>
<p>add the below code</p>
<p><code><br />
$length = strlen( APPLICATION_PATH );<br />
if(is_array($_SERVER['argv']) ) {<br />
    $modulePosition = array_keys( $_SERVER['argv'] , 'module');<br />
    if ( !empty( $modulePosition ) ) {<br />
        $moduleName = $_SERVER['argv'][$modulePosition[0]+1];<br />
        if ( is_dir( APPLICATION_PATH . "/modules/$moduleName" ) ) {<br />
            foreach( $config as $key =&gt; $value ) {<br />
                $config[$key] = APPLICATION_PATH . "/modules/$moduleName" . substr_replace($value, '', 0, $length);<br />
            }<br />
        }<br />
    }<br />
}<br />
</code></p>
<p>I assume people will be calling like  ./doctrine test module blog</p>
<p>Not sure whether doctrine has something like module calling . Hope not , else we can change . I am just playing so may be wrong too . I am interested to hear what you think about this .</p>
<p>Thanks</p>
<p>Hari K T</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.zendcasts.com/writing-a-zend_auth_adapter-with-doctrine/2010/01/comment-page-1/#comment-6298</link>
		<dc:creator>John</dc:creator>
		<pubDate>Tue, 23 Mar 2010 20:32:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=301#comment-6298</guid>
		<description>Hey,

Really great tutorials!

I downloaded the source code and I got a mysql error when trying to reload the tables. The mysql string was output to the cmd prompt, so I copied it into mysql query browser. 

I started with, create table user, as was shown in the command prompt, but i noticed that user was a reserved mysql word, I tried putting user in backticks in the yml, but that actually created a file called `user`.php... Alas, I just changed schema.yml to create userS, and everything worked great. You the man, Jon!</description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>Really great tutorials!</p>
<p>I downloaded the source code and I got a mysql error when trying to reload the tables. The mysql string was output to the cmd prompt, so I copied it into mysql query browser. </p>
<p>I started with, create table user, as was shown in the command prompt, but i noticed that user was a reserved mysql word, I tried putting user in backticks in the yml, but that actually created a file called `user`.php&#8230; Alas, I just changed schema.yml to create userS, and everything worked great. You the man, Jon!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zend Framework Blog &#187; Blog Archive &#187; Aus den Zend Framework Blogs</title>
		<link>http://www.zendcasts.com/writing-a-zend_auth_adapter-with-doctrine/2010/01/comment-page-1/#comment-5838</link>
		<dc:creator>Zend Framework Blog &#187; Blog Archive &#187; Aus den Zend Framework Blogs</dc:creator>
		<pubDate>Thu, 04 Mar 2010 21:21:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=301#comment-5838</guid>
		<description>[...] Jon Lebensold hat ein weiteres Video veröffentlicht, dieses Mal über einen Zend_Auth_Adapter für Doctrine [...]</description>
		<content:encoded><![CDATA[<p>[...] Jon Lebensold hat ein weiteres Video veröffentlicht, dieses Mal über einen Zend_Auth_Adapter für Doctrine [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jasper</title>
		<link>http://www.zendcasts.com/writing-a-zend_auth_adapter-with-doctrine/2010/01/comment-page-1/#comment-5412</link>
		<dc:creator>Jasper</dc:creator>
		<pubDate>Mon, 15 Feb 2010 09:08:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=301#comment-5412</guid>
		<description>These tutorials are very useful... I&#039;m going through all of them and really appreciate the level of detail.

Keep up the good work!
Jasper</description>
		<content:encoded><![CDATA[<p>These tutorials are very useful&#8230; I&#8217;m going through all of them and really appreciate the level of detail.</p>
<p>Keep up the good work!<br />
Jasper</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ZendCasts.com: Writing a Zend_Auth_Adapter with Doctrine &#124; Webs Developer</title>
		<link>http://www.zendcasts.com/writing-a-zend_auth_adapter-with-doctrine/2010/01/comment-page-1/#comment-5005</link>
		<dc:creator>ZendCasts.com: Writing a Zend_Auth_Adapter with Doctrine &#124; Webs Developer</dc:creator>
		<pubDate>Mon, 25 Jan 2010 16:02:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=301#comment-5005</guid>
		<description>[...] from the ZendCasts.com site today there&#8217;s this new screencast looking at the integration of the Zend_Auth_Adapter component of the Zend Framework and the [...]</description>
		<content:encoded><![CDATA[<p>[...] from the ZendCasts.com site today there&#8217;s this new screencast looking at the integration of the Zend_Auth_Adapter component of the Zend Framework and the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doctrine és Zend Framework integráció &#171; vbali blogja</title>
		<link>http://www.zendcasts.com/writing-a-zend_auth_adapter-with-doctrine/2010/01/comment-page-1/#comment-4991</link>
		<dc:creator>Doctrine és Zend Framework integráció &#171; vbali blogja</dc:creator>
		<pubDate>Sun, 24 Jan 2010 13:18:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=301#comment-4991</guid>
		<description>[...] Writing a Zend_Auth_Adapter with Doctrine [...]</description>
		<content:encoded><![CDATA[<p>[...] Writing a Zend_Auth_Adapter with Doctrine [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marsbomber</title>
		<link>http://www.zendcasts.com/writing-a-zend_auth_adapter-with-doctrine/2010/01/comment-page-1/#comment-4985</link>
		<dc:creator>marsbomber</dc:creator>
		<pubDate>Sun, 24 Jan 2010 01:23:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=301#comment-4985</guid>
		<description>Hi Jon, 

You are spot on. I should be able to pull logic inside the _getAuthAdapter function out of the controller, and put in a login service class, or something like that. What do you think?</description>
		<content:encoded><![CDATA[<p>Hi Jon, </p>
<p>You are spot on. I should be able to pull logic inside the _getAuthAdapter function out of the controller, and put in a login service class, or something like that. What do you think?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://www.zendcasts.com/writing-a-zend_auth_adapter-with-doctrine/2010/01/comment-page-1/#comment-4984</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Sun, 24 Jan 2010 00:29:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=301#comment-4984</guid>
		<description>Hy Jim,

I think you put together a great post with a solid implementation. My only comment is that with this design, you&#039;ve now coupled the object creation code to your Controller. On Monday I&#039;ll be posting the IndexController code that will actually use the Zend_Auth_Adaoter written in this tutorial. I&#039;d prefer this approach simply because after you&#039;ve performed the authenticate() method, you don&#039;t have to do any storage-&gt;write() business, but simply let Zend_Auth do its thing.</description>
		<content:encoded><![CDATA[<p>Hy Jim,</p>
<p>I think you put together a great post with a solid implementation. My only comment is that with this design, you&#8217;ve now coupled the object creation code to your Controller. On Monday I&#8217;ll be posting the IndexController code that will actually use the Zend_Auth_Adaoter written in this tutorial. I&#8217;d prefer this approach simply because after you&#8217;ve performed the authenticate() method, you don&#8217;t have to do any storage->write() business, but simply let Zend_Auth do its thing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marsbomber</title>
		<link>http://www.zendcasts.com/writing-a-zend_auth_adapter-with-doctrine/2010/01/comment-page-1/#comment-4979</link>
		<dc:creator>marsbomber</dc:creator>
		<pubDate>Sat, 23 Jan 2010 22:37:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=301#comment-4979</guid>
		<description>Hi Jon, 
I&#039;ve tried to implement my doctrine auth adapter base on Palo Verede&#039;s post a while back. but I had some issues with it myself. It&#039;s great to see you showing us how to make a working solution from zendcasts.

However there&#039;s something I want to share with the rest of the community too. My made an implementation with the use of ZendX_Doctrine_Auth_Adapter from the ZendX incubator.

Because of the length of the explanation, instead of posting my alternative solution here, I&#039;ve just written a blog post at http://blog.elinkmedia.net.au/2010/01/24/zf-authentication-using-doctrine/

It&#039;ll be great if I can get your opinions on my implementation.</description>
		<content:encoded><![CDATA[<p>Hi Jon,<br />
I&#8217;ve tried to implement my doctrine auth adapter base on Palo Verede&#8217;s post a while back. but I had some issues with it myself. It&#8217;s great to see you showing us how to make a working solution from zendcasts.</p>
<p>However there&#8217;s something I want to share with the rest of the community too. My made an implementation with the use of ZendX_Doctrine_Auth_Adapter from the ZendX incubator.</p>
<p>Because of the length of the explanation, instead of posting my alternative solution here, I&#8217;ve just written a blog post at <a href="http://blog.elinkmedia.net.au/2010/01/24/zf-authentication-using-doctrine/" rel="nofollow">http://blog.elinkmedia.net.au/2010/01/24/zf-authentication-using-doctrine/</a></p>
<p>It&#8217;ll be great if I can get your opinions on my implementation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ZF Authentication using Doctrine &#187; elink media blog</title>
		<link>http://www.zendcasts.com/writing-a-zend_auth_adapter-with-doctrine/2010/01/comment-page-1/#comment-4978</link>
		<dc:creator>ZF Authentication using Doctrine &#187; elink media blog</dc:creator>
		<pubDate>Sat, 23 Jan 2010 22:27:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=301#comment-4978</guid>
		<description>[...] ZF Authentication using Doctrine   January 24th, 2010 by Jim Li   Leave a reply &#187;    As one of my everyday morning tasks, I just checked the rss feeds from my news reader. Interesting enough, one of my favourite blog authors, Jon Lebensold from ZendCasts, just published a new post on &#8220;Writing a Zend_Auth_Adapter with Doctrine&#8220;. [...]</description>
		<content:encoded><![CDATA[<p>[...] ZF Authentication using Doctrine   January 24th, 2010 by Jim Li   Leave a reply &raquo;    As one of my everyday morning tasks, I just checked the rss feeds from my news reader. Interesting enough, one of my favourite blog authors, Jon Lebensold from ZendCasts, just published a new post on &#8220;Writing a Zend_Auth_Adapter with Doctrine&#8220;. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

