arulu / doctrine-bundle
Arulu DoctrineBundle
v1.0.0
2012-09-07 21:18 UTC
Requires
- php: >=5.3.2
- doctrine/dbal: >=2.2,<2.4-dev
- symfony/doctrine-bridge: 2.1.*
- symfony/framework-bundle: 2.1.*
Requires (Dev)
- doctrine/orm: >=2.2,<2.4-dev
- symfony/validator: 2.1.*
- symfony/yaml: 2.1.*
Suggests
- doctrine/orm: The Doctrine ORM integration is optional in the bundle.
This package is not auto-updated.
Last update: 2024-09-22 02:42:00 UTC
README
此分支包括MySQL中的跨数据库连接。
Doctrine DBAL & ORM Bundle for the Symfony Framework.
因为Symfony 2不想强制或建议特定的持久化解决方案给用户,所以此扩展包被从Symfony 2框架的核心中移除。Doctrine2仍然将是Symfony世界中的主要参与者,并且该扩展包由Doctrine和Symfony社区的开发商维护。
IMPORTANT: This bundle is developed for Symfony 2.1 and up. For Symfony 2.0 applications the DoctrineBundle
is still shipped with the core Symfony repository.
什么是Doctrine?
Doctrine Project是PHP库的集合,主要关注提供持久化服务和相关功能。其最杰出的项目是对象关系映射器及其构建在之上的数据库抽象层。您可以在下面的项目部分中了解更多关于这些项目的信息,或查看所有项目的列表。
PHP对象关系映射器(ORM),位于强大的数据库抽象层(DBAL)之上。它的一个关键特性是可选地使用名为Doctrine查询语言(DQL)的专有面向对象SQL方言编写数据库查询,灵感来自Hibernate的HQL。这为开发者提供了一种强大的SQL替代方案,同时保持灵活性,无需不必要的代码重复。
DBAL是一个功能强大的数据库抽象层,具有许多数据库模式内省、模式管理和PDO抽象的特性。
安装
1. 旧依赖和bin/vendors方式
将以下片段添加到"deps"文件中
[doctrine-dbal]
git=http://github.com/doctrine/dbal.git
[doctrine-orm]
git=http://github.com/doctrine/doctrine2.git
[DoctrineBundle]
git=http://github.com/doctrine/DoctrineBundle.git
target=/bundles/Doctrine/Bundle/DoctrineBundle
2. Composer
将以下依赖项添加到您的项目composer.json文件中
"require": {
# ..
"doctrine/doctrine-bundle": ">=2.1"
# ..
}
文档
更多完整文档请参阅Resources/docs文件夹。