https://github.com/webfactory/content-mapping-sourceadapter-propel
SourceAdapter for Propel Databases inside the webfactory/content-mapping mini framework
https://github.com/webfactory/content-mapping-sourceadapter-propel
Last synced: 2 months ago
JSON representation
SourceAdapter for Propel Databases inside the webfactory/content-mapping mini framework
- Host: GitHub
- URL: https://github.com/webfactory/content-mapping-sourceadapter-propel
- Owner: webfactory
- License: mit
- Created: 2015-08-06T11:34:35.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2024-09-04T15:29:29.000Z (10 months ago)
- Last Synced: 2024-10-04T20:04:26.371Z (9 months ago)
- Language: PHP
- Size: 8.79 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-propel #
SourceAdapter for Propel Databases in the [webfactory/content-mapping](https://github.com/webfactory/content-mapping)
mini framework.## Installation ##
Assuming you already have a working Propel installation, simply
composer require webfactory/content-mapping-sourceadapter-propel
## Usage ##
```php
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](LICENSE).