现在有两件事似乎很流行,我想知道使用这样的东西的利弊是什么: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模板网!
以编程方式将可下载文件添加到 Woocommerce 产品Add programmatically a downloadable file to Woocommerce products(以编程方式将可下载文件添加到 Woocommerce 产品)
获取今天 Woocommerce 中每种产品的总订单数Get today#39;s total orders count for each product in Woocommerce(获取今天 Woocommerce 中每种产品的总订单数)
在 WooCommerce 和电话字段验证问题中添加自定义注Add Custom registration fields in WooCommerce and phone field validation issue(在 WooCommerce 和电话字段验证问题中添加自定义注册字段
在 Woocommerce 简单产品中添加一个将更改价格的选Add a select field that will change price in Woocommerce simple products(在 Woocommerce 简单产品中添加一个将更改价格的选择字段)
在 WooCommerce 3 中将自定义列添加到管理产品列表Add custom columns to admin products list in WooCommerce 3(在 WooCommerce 3 中将自定义列添加到管理产品列表)
自定义结帐“下订单"按钮输出htmlCustomizing checkout quot;Place Orderquot; button output html(自定义结帐“下订单按钮输出html)