对了,不是除了,是比ezpdo还好用滴……

解决方案 »

  1.   

    弱弱的问一句,orm是什么? 
      

  2.   

    没用过,但在Google搜了下,确认ezpdo最多人用的
      

  3.   

    感谢楼上,还帮我搜了下,我也搜了好多下……
    谁在帮忙推荐推荐,找找,再加100分
    orm是对象和关系型数据库,相互影射的东西,这样子面对对象搞起来就爽一点……
    那位老大自己开发了,也带挈一下小弟们……
      

  4.   

    晕,在google上搜ezpdo
    居然找到此帖...
      

  5.   

    Propel http://propel.phpdb.org/trac/wiki/Users/IntroductionZF1.5也提供了一个ORM,不过ZF的社区反应不怎么样。
      

  6.   

    http://www.doctrine-project.org/Doctrine is an object relational mapper (ORM) for PHP 5.2.3 and later that sits on top of a powerful database abstraction layer (DBAL). One of its key features is the option to write database queries in a proprietary object oriented SQL dialect called Doctrine Query Language (DQL), inspired by Hibernates HQL. This provides developers with a powerful alternative to SQL that maintains flexibility without requiring unnecessary code duplication.---------------------------------------------------------------http://xyster.devweblog.org/http://xyster.devweblog.org/documentation/guide/xyster.orm.html
    ---------------------------------------------------------------http://www.schizofreend.nl/pork.dbobject/WTF is Pork.dbObject?It's an Object-Relation mapper for PHP 5 that attempts to be easy, fast, lightweight, uses optimized database queries and provides an easy Find() function very loosely based on rails'. Also, i'm coming with Pork.Generator: A PHP5 based database analyzer that automatically sees the different types of relations in your (MySQL) database and creates linked dbObjects for it.
    ---------------------------------------------------------------
    http://www.outlet-orm.org/site/Outlet is an open source object-to-relational mapping tool for PHP.It differs from other orm solutions for php in that it provides transparent, unobtrusive persistence. It does not require your entity objects to implement any interfaces or extend some sort of base class. It is also very lightweight, only a handful of classes and tools.It uses an approach similar to hibernate in java, using proxy objects that save the data behind the scenes.Outlet is released under the New BSD License.---------------------------------------------------------------
    http://kohanaphp.com/http://docs.kohanaphp.com/libraries/orm
    ---------------------------------------------------------------
    Propelhttp://propel.phpdb.org/trac/wiki/Users/Introduction 最下面这个是ZF社区的人推荐的。
    不过我看你这么挑剔,建议你还是自己写吧。
    或者你写需求我帮你写。
    我的框架现在也刚进行到ORM工具部分,分析需求很是头疼。
    参考的这些都有缺点,但却总结不出一套更为完善的方案。
      

  7.   

    楼上也在搞框架阿,真是,天可怜见……
    你怎么做拦截的,可是动态代理委托,我觉得动态继承好像也不错,还可以用$this
    外观层打算用js做监听器和渲染器,对html元素进行一定粒度的组件化
    mvc我觉得没有mvp来的实际
    说到c这个控制层,又不得不想到领域模型,还有贫血模型什么的,service层到底个什么厚度好,头大
    orm也是一个痛
    楼上楼下的,拿板砖使劲来劈
      

  8.   

    我写的框架比较靠近MVP一点,有一个主持者负责衔接。
    不过Model层比较变异一些,可以当Service调用。其实
    我一直分不清这些模型各部分的职责,仅作了参考而已。
    Router、ORM这些只作为主持者的调配的工具角色。
    各部分比较松散些,可以拆开来使用。
    不过类Model内的东西有严格规范,手写比较麻烦不过便于代码生成工具。
    View层没有过多考虑,提供适合常规模板引擎的接口就好吧。
    个人比较纯化主义,像XAjax类的东西不是很喜欢用,倒是觉得提供一套
    纯Js的服务模型比较可靠,不至于过于依赖框架本身。
    有兴趣可以加我的群……
      

  9.   

    呃~忘了~我的框架是用数据作为牵引的。
    上面说的ORM也是一个变体,贯通了程序上下。
    以前是用散列或者Bean,但发现model里有很多
    操作可以简化,所以就派出了一个较为严格的数据模型出来。
    我的框架是Java先行的……
    所以~呃~自我感觉很多地方写得很二,得多多重构。
    最近在看一本重构与模式,感觉还不错。
      

  10.   

    http://blog.csdn.net/slawdan/archive/2007/07/17/1694949.aspxcsdn上面找到的。