Getting Started: Model 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, then 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.

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

There are applications when you start with a high-level description of the model using modelling tools such as UML. Modelling tools could also be Excel, XML or CSV files that describe the model in some structured way. If your application is using a modelling tool, then the development workflow is said to be a Model First approach to Doctrine2.

UML などのモデリング ツールを使用して、モデルの高レベルの記述から始める場合のアプリケーションがあります。モデリング ツールは、構造化された方法でモデルを記述する Excel、XML、または CSV ファイルの場合もあります。アプリケーションがモデリング ツールを使用している場合、開発ワークフローは Doctrine2 へのモデル ファースト アプローチと言われます。

In this workflow you always change the model description and then regenerate both PHP code and database schema from this model.

このワークフローでは、常にモデルの説明を変更してから、このモデルから PHP コードとデータベース スキーマの両方を再生成します。

Previous topic

Getting Started: Database First

はじめに: データベース ファースト

Next topic

Working with Indexed Associations

索引付けされた関連付けの操作

This Page

Fork me on GitHub