Getting Started: Database First

Note

ノート

Development Workflows

開発ワークフロー

When you Code First, you start with developing Objects and then map them onto your database. When you Model First, you are modelling your application using tools (for example UML) and generate database schema and PHP code from this model. When you have a Database First, you already have a database schema and generate the corresponding PHP code from it.

Code First では、オブジェクトの開発から始めて、それらをデータベースにマップします。 Model First を使用すると、ツール (UML など) を使用してアプリケーションをモデル化し、このモデルからデータベース スキーマと PHP コードを生成します。

Note

ノート

This getting started guide is in development.

この入門ガイドは開発中です。

Development of new applications often starts with an existing database schema. When the database schema is the starting point for your application, then development is said to use the Database First approach to Doctrine.

新しいアプリケーションの開発は、多くの場合、既存のデータベース スキーマから始まります。データベース スキーマがアプリケーションの出発点である場合、開発は Doctrine に対する Database First アプローチを使用すると言われます。

In this workflow you would modify the database schema first and then regenerate the PHP code to use with this schema. You need a flexible code-generator for this task.

このワークフローでは、最初にデータベース スキーマを変更してから、このスキーマで使用する PHP コードを再生成します。このタスクには、柔軟なコード ジェネレーターが必要です。

We spinned off a subproject, Doctrine CodeGenerator, that will fill this gap and allow you to do Database First development.

このギャップを埋め、データベース ファーストの開発を可能にするサブプロジェクト、Doctrine CodeGenerator をスピンオフしました。

Previous topic

Getting Started with Doctrine

Doctrine を始める

Next topic

Getting Started: Model First

はじめに: モデルファースト

This Page

Fork me on GitHub