webcook / doctrine
适用于 Nette 框架的 Doctrine 2 ORM 和迁移插件
v1.0.1
2015-04-05 09:16 UTC
Requires
- php: >=5.3.2
- doctrine/orm: 2.3.*
- nette/nette: 2.*
Suggests
- doctrine/migrations: Need for migrations support
- nella/console: Need for console support
- nella/gedmo: Integrate Doctrine Gedmo extension to Nette Framework
This package is not auto-updated.
Last update: 2024-09-14 16:24:00 UTC
README
一个库,用于轻松集成 Doctrine 2 ORM 到 Nette 框架。
需求
- PHP 5.3.2 或更高版本
- Nette 框架 2.0.0 或更高版本
- Doctrine ORM 2.3.0rc 或更高版本
建议
- Nella Console Extension 2.0.0beta 或更高版本
- Doctrine Migrations master
- Nella Gedmo Extension 2.0.0beta 或更高版本
安装
将 "nella/doctrine": "*"
添加到 *composer.json 并运行 composer update
。编辑您的 bootstrap.php 并在 $configurator->createContainer()
之前添加 Nella\Doctrine\Config\Extension::register($configurator);
。
如果您想使用 Doctrine Migrations,请在 $configurator->createContainer()
之前添加 Nella\Doctrine\Config\MigrationsExtension::register($configurator);
。
更多详情请参阅 文档。