In two previous posts I covered up how to boostrap Doctrine 2 in Zend Framework project and how to set up Doctrine Console. Next thing you probably gonna need is auth adapter.
I am not going to provide full code here. Instead I’ll just give a link to github Gist. You’ll find everything you need there. It is very straightforward.
I combined it from two sources and used existing Zend_Auth adapters as a example.