c-lod / siesta
PHP 7 ORM Library
1.4.4
2021-03-16 13:53 UTC
Requires
- php: >=7.1.0
- ext-dom: *
- ext-json: *
- ext-libxml: *
- ext-mysqli: *
- gm314/common: *
- gm314/nitria: *
- psr/log: *
- symfony/console: *
Requires (Dev)
- dev-master
- dev-add-default-time-fields
- 1.4.4
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.0
- 0.5.3
- 0.5.2
- 0.5.1
- 0.5.0
- 0.4.7
- 0.4.6
- 0.4.5
- 0.4.4
- 0.4.3
- 0.4.2
- 0.4.1
- 0.4.0
- 0.3.3
- 0.3.2
- 0.3.1
- 0.3.0
- 0.1.0.
- dev-feature/mysql-meta-data-performance
- dev-feature/collection-many-to-array
- dev-feature/last-modified
- dev-feature/clean-up
- dev-feature/merging
- dev-feature/stored-procedure-delta
This package is not auto-updated.
Last update: 2025-05-08 08:16:39 UTC
README
Stored procedure based ORM for PHP 7.
Documentation
For full documentation, please visit https://gperler.github.io
Installation with composer
composer require gm314/siesta
Example
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);
Console Commands
create config file
vendor/bin/siesta init
generate entities
vendor/bin/siesta gen
reverse engineer
vendor/bin/siesta reverse
Testing
configure your database settings in tests/siesta.test.mysql.config.json
vendor/bin/codecept run