PHPackages                             doomy/ormtopus - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. doomy/ormtopus

ActiveLibrary[Database &amp; ORM](/categories/database)

doomy/ormtopus
==============

5.3(1y ago)11964PHPPHP ^8.3CI failing

Since Jun 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/doomy/ormtopus)[ Packagist](https://packagist.org/packages/doomy/ormtopus)[ RSS](/packages/doomy-ormtopus/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (9)Dependencies (7)Versions (10)Used By (4)

Ormtopus
========

[](#ormtopus)

simple ORM library working with Nette framework with entity caching for better performance.

Prerequisities
--------------

[](#prerequisities)

In order for orm to work, working dibi connection needs to be established first. In your local configuration file (`local.neon`), you should have your connection set up in similar fashion as below:

```
parameters:
    dibi:
        host: localhost
        username: db_username
        password: db_password
        database: db_schema
```

Then, in your global config file (`common.neon`/ `config.neon`) set up following services:

```
services:
	connection: Dibi\Connection(%dibi%)
	entityFactory: Doomy\Repository\EntityFactory(@connection)
	repoFactory: Doomy\Repository\RepoFactory(@connection, @entityFactory)
	entityCache: Doomy\EntityCache\EntityCache
	data: Doomy\Ormtopus\DataEntityManager(@repoFactory, @entityCache)
```

### Entity models

[](#entity-models)

for each entity you plan to be working with equivalent php entity model class has to be created manually. See the example below:

```
