i will try to explain you how you can create a command which you can use on your command line to execute doctrine commands. This is the first part of the post. The second part is a bit fantasy. I have tried to integrate doctrine to Zend_Tool and wanted to call it like:
zf.sh generate doctrine sql
Actually, you don’t need such a thing. First part is pretty much enough for you. Second part is just for fun.
Continue reading Creating a Doctrine CLI and Adding it to Zend_Tool