This module allows for using repository pattern instead of Active Record.
Table of Contents
This package allows for using Repository pattern. It's design was based on Doctrine ORM. It contains Entity Manager, Unit Of Work, Default Pimcore Entity Repository.
This module is compatible with Pimcore >= 5.2 and Pimcore 6.0.
- Add this repository to your composer json
"repositories": [
{
"type": "vcs",
"url": "[email protected]:mbolka/pimcore-repository.git"
}
]
-
Install Pimcore Repository via composer
composer require mbolka/pimcore-repository:dev
-
Register repository bundle in app/AppKernel.php file
-
Create a new object of class IntegrationConfiguration
if (class_exists('\\Bolka\\RepositoryBundle\\RepositoryBundle')) {
$collection->addBundle(new Bolka\RepositoryBundle\RepositoryBundle);
}
If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are welcome.
The code in this project is licensed under the GPL license.