-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the hibernate_hbm2annotation wiki! This Wiki contains useful information about how to use the PHP Script in this repository.
There are several steps to a successful hbm2annotation-migration. These steps worked well for us and our codebase, but your mileage may vary.
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.
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.
Start by reading the Analysis page.
The actual migration guide can be found here.