Zend Framework: Zend_Auth_Adapter_Doctrine_Table Component Proposal
| Proposed Component Name | Zend_Auth_Adapter_Doctrine_Table |
|---|---|
| Developer Notes | http://framework.zend.com/wiki/display/ZFDEV/Zend_Auth_Adapter_Doctrine_Table |
| Proposers | Jason Eisenmenger David A. Werner |
| Zend Liaison | TBD |
| Revision | 1.0 - 16 June 2008: Working Draft. (wiki revision: 5) |
Table of Contents
1. Overview
Zend_Auth_Adapter_Doctrine_Table is an authentication adapter for Zend_Auth to use the Doctrine DBAL
2. References
- [Zend_Auth_Adapter_Dbtable]
3. Component Requirements, Constraints, and Acceptance Criteria
- This component will provide the exact same functionality as Zend_Auth_Adapter_DbTable
- This component will support Doctrine's query conventions in the adapter methods.
4. Dependencies on Other Framework Components
- Zend_Auth_Adapter_Interface
- Zend_Auth_Result
- Zend_Auth_Adapter_Exception
- Doctrine_Connection_Common
- Doctrine_Query
5. Theory of Operation
This component is used exactly the same way as Zend_Auth_Adapter_DbTable, with the added functionality of using Doctrine's preferred way of casting names.
6. Milestones / Tasks
- Milestone 1: [DONE] Initial proposal published for review with working prototype.Download
- Milestone 2: Working prototype checked into the incubator supporting use cases #1, #2, ...
- Milestone 3: Working prototype checked into the incubator supporting use cases #3 and #4.
- Milestone 4: Unit tests exist, work, and are checked into SVN.
- Milestone 5: Initial documentation exists.
7. Class Index
- Zend_Auth_Adapter_Doctrine_Table
8. Use Cases
| UC-01 |
|---|
| UC-02 |
|---|
ZF Home Page
Code Browser
Wiki Dashboard
While creating this, David and I realized that we could nearly directly copy the current DbTable with little modification. Which we ended up doing
There are probably a total of only 30 lines difference between the two without counting changing all instances of DbTable to Doctrine_Record.
This brings up the issue of alot of the code in both being extended from elsewhere, perhaps into a Zend_Auth_Adapter_Dbal.php or some such.