Skip to content

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

License

Notifications You must be signed in to change notification settings

webfactory/content-mapping-sourceadapter-propel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

content-mapping-sourceadapter-propel

SourceAdapter for Propel Databases in the webfactory/content-mapping mini framework.

Installation

Assuming you already have a working Propel installation, simply

composer require webfactory/content-mapping-sourceadapter-propel

Usage

use Webfactory\ContentMapping\Synchronizer;
use Webfactory\ContentMapping\SourceAdapter\Propel\GenericPropelSourceAdapter;

$classNameToSynchronize = 'MyClass';
$resultSetMethod = 'doSelectRS';
$logger = ...; // optional: any PSR-3 logger

$sourceAdapter = new GenericPropelSourceAdapter($classNameToSynchronize, $resultSetMethod, $logger);

$synchronizer = new Synchronizer($sourceAdapter, $mapper, $destinationAdapter, $logger);

If the GenericPropelSourceAdapter does not fit your needs, you may find the abstract PropelSourceAdapter helpful.

Credits, Copyright and License

This project was started at webfactory GmbH, Bonn.

Copyright 2015 webfactory GmbH, Bonn. Code released under the MIT license.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages