2012年7月13日

关于propel--PHP

摘要: 我不知道有谁用过propel做过ORM,propel 效率还行,写起来像这样: 1. $author = new Author(); 2. $author->setFirstName('Jane'); 3. $author->setLastName('Austen'); 4. $author->save();这里的anthor 是author表对应的类,2,3,4非常清晰明白,firstname,和lastname是表中的字段名.这样用起来很方便.我看了一下它的model,把表中的字段映射成类和方法,写了六七个文件.但是我想,如果用rails 阅读全文

posted @ 2012-07-13 23:12 onthenet 阅读(167) 评论(0) 推荐(0) 编辑

导航