Skip to content

webfactory/content-mapping-sourceadapter-doctrine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

content-mapping-sourceadapter-doctrine

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.

About

SourceAdapter for Doctrine Databases inside the webfactory/content-mapping mini framework

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages