Latest commit d8debc9 Nov 21, 2016 @chanmix51 chanmix51 committed on GitHub Merge pull request #70 from stood/hotfix-change-statut-add-function
change entity status when add function is used
Failed to load latest commit information.
sources Change statut entity when add function is used Nov 19, 2016
.bootstrap.atoum.php PgEntity - big rework. Oct 24, 2014
.gitignore Adapted to FoundationSessionAtoum. Feb 6, 2015
.travis.yml Add travis to test with php7 Nov 26, 2015
CHANGELOG VERSION 2.0.1 Dec 4, 2015
LICENSE Add stable version button on README Oct 6, 2015
VERSION Update VERSION Dec 4, 2015
composer.json remove branch-alias from composer.json Dec 4, 2015
composer.lock Fix bug with unascaped savepoints Oct 27, 2015

Pomm ModelManager

Latest Stable Version Scrutinizer Code Quality Build Status Monthly Downloads License

ModelManager is a Pomm project package. It makes developers able to manage entities upon the database through model classes. It is not an ORM, it grants developers with the ability to perform native queries using all of Postgres’SQL and use almost all its types. This makes model layer to meet with performances while staying lean.

This package will provide:

  • Model classes with all common built-in queries (CRUD but also, count and exists).
  • Flexible entities
  • Embedded entities converter
  • Model Layer to group model computations in transactions.

The model layer also proposes methods to leverage Postgres nice transaction settings (constraint deferring, isolation levels, read / write access modes etc.).


Pomm components are available on packagist using composer. To install and use Pomm's model manager, add a require line to "pomm-project/model-manager" in your composer.json file. It is advised to install the CLI package as well.

In order to load the model manager's poolers at startup, it is possible to use the provided SessionBuilder in Pomm's configuration:

$pomm = new Pomm([
    'project_name' => [
        'dsn' => …,
        'class:session_builder' => '\PommProject\ModelManager\SessionBuilder',


It is better to provide dedicated session builders with your project.


The model manager’s documentation is available either online or directly in the documentation folder.


This package uses Atoum as unit test framework. The tests are located in sources/tests. This package also provides a ModelSessionAtoum class so the test classes can directly get sessions with the model and model layer poolers loaded.