https://github.com/webfactory/content-mapping-sourceadapter-doctrine
SourceAdapter for Doctrine Databases inside the webfactory/content-mapping mini framework
https://github.com/webfactory/content-mapping-sourceadapter-doctrine
Last synced: 4 months ago
JSON representation
SourceAdapter for Doctrine Databases inside the webfactory/content-mapping mini framework
- Host: GitHub
- URL: https://github.com/webfactory/content-mapping-sourceadapter-doctrine
- Owner: webfactory
- License: mit
- Created: 2015-08-06T14:04:33.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2021-07-09T07:26:36.000Z (almost 4 years ago)
- Last Synced: 2025-01-29T13:38:09.409Z (5 months ago)
- Language: PHP
- Size: 4.88 KB
- Stars: 0
- Watchers: 10
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# content-mapping-sourceadapter-doctrine #
SourceAdapter for Doctrine entities in the [webfactory/content-mapping](https://github.com/webfactory/content-mapping)
mini framework.## Installation ##
composer require webfactory/content-mapping-sourceadapter-doctrine
## Usage ##
```php
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](LICENSE).