php - Kohana 3.1 有哪些 ORM 解决方案?

标签 php orm kohana kohana-3 kohana-orm

Kohana 3.0 过去除了默认的 ORM 系统外还有 Sprig、Jelly 等。据我了解,Kohana 3.1 与 Sprig and Jelly 不兼容,其默认 ORM 仍在开发中。那么 Kohana 3.1 中的 ORM 使用什么?

最佳答案

看看Leap ORM for Kohana .您可以在 https://github.com/spadefoot/kohana-orm-leap 上从 github 下载它。

此 ORM 旨在与 Kohana 3.0.X、Kohana 3.1.X 和 Kohana 3.2 一起使用。与我见过的其他 Kohana ORM 不同,它适用于所有主要数据库(包括 MySQL、MariaDB、PostgresSQL、MS SQL、DB2、Oracle、Firebird 和 Sqlite)。扩展 ORM 非常容易,而 Kohana 的默认 ORM 无法在不进行大量工作的情况下适应此类数据库。

它有很好的文档记录。与我见过的其他 Kohana ORM 不同,它可以处理复合主键,并且可以使用多个整数作为主键(例如字符串)。它还使您能够使用简单的配置文件灵活地将数据库驱动程序从标准 PHP 扩展切换到 PDO。

关于php - Kohana 3.1 有哪些 ORM 解决方案?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5575727/

相关文章:

php - 如何在 php 中组合连续的月份名称?

php - RedBean 是否需要 "id"主键?

python - 我想在 django 中使用 ORM 获取两个查询数据的结果

orm - Kohana ORM加载时报告记录未加载

kohana - 还有其他 PHP 框架使用级联文件系统吗?

php - Codeigniter: fatal error 调用未定义的函数mysqli_init()

php - 使用 PDO 保存动态表单中的数据

php - 将数据插入具有相同主键的多个表

java - JPA:外键注释

linux - Kohana_HTTP_Exception [404] : The requested URL/was not found on this server