webfactory / content-mapping-sourceadapter-doctrine
SourceAdapter for Doctrine entities inside the webfactory/content-mapping mini framework
Installs: 11 663
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 10
Forks: 1
Open Issues: 0
Requires
- php: >=5.3.0
- doctrine/orm: ^2.1
- webfactory/content-mapping: ^3.0
This package is auto-updated.
Last update: 2024-11-09 14:25:12 UTC
README
SourceAdapter for Doctrine entities in the webfactory/content-mapping mini framework.
Installation
composer require webfactory/content-mapping-sourceadapter-doctrine
Usage
use Webfactory\ContentMapping\Synchronizer; use Webfactory\ContentMapping\SourceAdapter\Doctrine\GenericDoctrineSourceAdapter; $repository = ...; // instance of your entity repository $repositoryMethod = 'findForSynchronization'; $sourceAdapter = new GenericDoctrineSourceAdapter($repository, $repositoryMethod); $synchronizer = new Synchronizer($sourceAdapter, $mapper, $destinationAdapter, $logger);
Credits, Copyright and License
This project was started at webfactory GmbH, Bonn.
Copyright 2015-2016 webfactory GmbH, Bonn. Code released under the MIT license.