Skip to content
Marius Schär edited this page Dec 4, 2018 · 3 revisions

Home

Welcome to the hibernate_hbm2annotation wiki! This Wiki contains useful information about how to use the PHP Script in this repository.

How to migrate

There are several steps to a successful hbm2annotation-migration. These steps worked well for us and our codebase, but your mileage may vary.

Preparation

Tooling

This script requires PHP >= 7.2 to run. Download the current stable PHP.
Install it and test your environment by running php -version.
It helps if you know some PHP in case you need to adjust the script for your codebase.

Configuration

First, copy the config.dist.php file into config.php and change $rootFilePath to the path of your codebase. This needs to be in the format of your platform i.E. "C:\\code\\myproject" for Windows.o

Optionally (for better performance) you can specify where your .hbm.xml-files are in the $bundles array. This means we don't need to search the entire codebase, but rather a small subset.

Analysis

Start by reading the Analysis page.

Migration

The actual migration guide can be found here.

Support

We'll try to provide "best-effort" support. Please open an issue if you need it.

Bugs

File an issue if you find any bugs.

Clone this wiki locally