集成 think-ORM 的 symfony bundle thinkorm-bundle

thinkorm-bundle

Symfony Think Orm Bundle

关于

thinkorm-bundle允许在你symfony使用thinkorm. 所

安装

 $ composer require ccwwwonebyone/thinkorm-bundle

使用

config/bundles.php添加onethinkorm-bundle

return [
    //...
    OneThink\OrmBundle\OneThinkOrmBundle::class => ['all' => true],
]

配置

移动 vendor/ccwwonebyone/thinkorm-bundle/config/packages/one_think_orm.yamlconfig/packages/one_think_orm.yaml

新增 .env 配置信息

DB_HOSTNAME=host
DB_USERNAME=username
DB_PASSWORD=password
DB_DATABASE=database
APP_DEBUG=true

you can see ThinkORM开发指南 了解更多配置,和如何使用thinkorm

License

Released under the MIT License, see LICENSE.

本作品采用《CC 协议》,转载必须注明作者和本文链接
讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!