Skip to content

Generate all your tables in no code at all almost

Philip Michael Raab edited this page Jun 26, 2014 · 1 revision

Firstly are your [Permissions](Permissions needed for writing files) ok?

Then use BuilderManager:

use Cathedral\Builder\BuilderManager;

Create a BuilderManager NO table specified:

$bm = new BuilderManager('DBLayer');

Then generate:

while ($bm->nextTable()) {
    $bm->writeDataTable();
    $bm->writeEntityAbstract();
    $bm->writeEntity();
}

and that all folks.

Home

Real Easy

Using the classes

  • Properties
  • Relations
  • Events

Generating the classes

Clone this wiki locally