jeremygiberson/doctrine-migrations-boilerplate 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jeremygiberson/doctrine-migrations-boilerplate

Composer 安装命令:

composer require jeremygiberson/doctrine-migrations-boilerplate

包简介

Doctrine ORM & Doctrine Migrations project w/ configuration and wiring. Going through the documentation for either project and putting them together can be a pain the first few times. This project provides the end result as sometimes a working example is better documentation.

README 文档

README

This project wires up Doctrine ORM & Migrations.

The project contains a working ORM + Migrations wiring/configuration. It's not a statement of best practices or anything, just a working example to get you going. Feel free to change things to your preference needs.

In order to use the command line tools you need to create the Entity Manager and provide the configuration to your model/mapping paths. But you'll also need the same configuration to create the Entity Manager in your application code. Rather than put this configuration in your application configuration or bootstrap, it's a good idea to keep entity manager & ORM configuration in a separate tiny config file. This lets you reuse the config in your app bootstrap and your command line config (and or test suite configs) without having to bootstrap your app config. This is just a suggestion though and you don't have to follow it.

Installation

Use composer to create a new project based off this boilerplate.

composer create-project jeremygiberson/doctrine-migrations-boilerplate my-project
cd my-project

Overrides

See doctrine-config.php.dist for overridable values. To override, copy the file to doctrine-config.php and change values to match your requirements.

Usage

Status

Check migrations status

vendor/bin/doctrine-migrations migrations:status

Migrate

Run pending migrations

vendor/bin/doctrine-migrations migrations:migrate

Diff

Generate a migration file by comparing current schema to your model definitions.

vendor/bin/doctrine-migrations migrations:diff

Other Commands

There are other commands available. You can see the list by running doctrine-migration without arguments.

vendor/bin/doctrine-migrations

统计信息

  • 总下载量: 22
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-06-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固