现在有两件事似乎很流行,我想知道使用这样的东西的利弊是什么:http://codeigniter.com/user_guide/database/active_record.html ?
There are two things that seem to be popular nowadays and I was wondering what are the pros and cons of using something like this: http://codeigniter.com/user_guide/database/active_record.html ?
另一件事是 ORM(例如 Doctrine).使用这些有什么好处?
Another thing is ORM (Doctrine for instance). What are the benefits of using these?
ActiveRecord 是 ORM 中常见的一种模式.Doctrine 是一个使用 ActiveRecord 风格的 ORM.
ActiveRecord is a pattern common in ORMs. Doctrine is an ORM which uses an ActiveRecord'ish style.
使用 Doctrine 等工具的一些好处:
Some benefits of using tools like Doctrine:
当然,它们并非没有缺点:
Of course, they don't come without disadvantages:
这篇关于PHP 中的 ORM 和 Active Record 模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!