Stored procedure based ORM for PHP 7.
For full documentation, please visit https://gperler.github.io
composer require gm314/siesta
In this example we create an Artist and Label entity, and configure the relationship between them:
$artist = new Artist();
$artist->setName("Jamie Woon");
$label = new Label();
$label->setName("PMR");
$label->setCity("London");
$label->addToArtistList($artist);
// save with cascade. will store both label and artist
$label->save(true);
create config file
vendor/bin/siesta init
generate entities
vendor/bin/siesta gen
reverse engineer
vendor/bin/siesta reverse
configure your database settings in tests/siesta.test.mysql.config.json
vendor/bin/codecept run