-
Notifications
You must be signed in to change notification settings - Fork 5
Generate Classes and Traits
Bruno Oliveira edited this page May 18, 2015
·
1 revision
EasyFast with PHP you can generate classes (DAO, MODEL) for direct communication with your database, making it much easier the developer's life, without having to write any SQL code line.
$orm = new EasyFast\Orm\Generator();
$schemaXml = $orm->generateSchema();
$orm->setDir('./Model');
$orm->setXml($schemaXml);
$orm->createTraits();
$orm->createClass();
Ready now you have all the classes according to your database.
* Be sure to run to generate your classes whenever there is a change in your database.