Skip to content

How to get started with annoteted entites and migrations #430

Answered by roxblnfk
Gokujo asked this question in Q&A
Discussion options

You must be logged in to vote
// ... 
		$compiler = new Compiler();
                // Compiler returns Schema array that can be cached
		$schemaArray = $compiler->compile(new Registry(DbHandler::$connection), [
			new Schema\Generator\ResetTables(),
			new Annotated\Embeddings($classLocator),
			new Annotated\Entities($classLocator),
			new Annotated\TableInheritance(),
			new Annotated\MergeColumns(),
			new Schema\Generator\GenerateRelations(),
			new Schema\Generator\GenerateModifiers(),
			new Schema\Generator\ValidateEntities(),
			new Schema\Generator\RenderTables(),
			new Schema\Generator\RenderRelations(),
			new Schema\Generator\RenderModifiers(),
			new Annotated\MergeIndexes(),
			new GenerateMigrations($m…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@Gokujo
Comment options

@roxblnfk
Comment options

@Gokujo
Comment options

@roxblnfk
Comment options

Answer selected by Gokujo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants