标签:php frameworks symfony1 zend-framework
实际上,我正在寻找一个帮助我使用“数据映射器”模式的框架.
我注意到很多PHP框架都提出了“Active Record”实现……
我发现“活动记录”对管理“功能数据”来说太差了……
使用此模式处理“复杂事务”或处理非DBMS后端似乎更简单…
有没有人知道处理“Data Mapper”模式的PHP框架?
或者是一个独立于DBMS处理“事务”的PHP框架?
解决方法:
Doctrine加上Zend Framework,这里是guide整合两者.
The following section tries to explain where Doctrine stands in the world of ORM tools. The Doctrine ORM is mainly built around the Active Record, Data Mapper and Meta Data Mapping patterns.
CakePHP将在2.x版本中提供数据映射器功能.
Roadmap / Major Features
- Model Refactoring
- Extending beyond the “almost” Active Record existing
- Interpretation of the Data Mapper design pattern
- Returning Objects from model interactions
- ArrayAccess to allow backwards compatability
The relational database information must be mapped to an object model. This can be done with an ORM tool and thankfully, symfony comes bundled with two of them: Propel and Doctrine.
DataMapper is an Object Relational
Mapper written in PHP for CodeIgniter.
It is designed to map your Database
tables into easy to work with objects,
fully aware of the relationships
between each other.
标签:php,frameworks,symfony1,zend-framework 来源: https://codeday.me/bug/20190522/1151421.html
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。