Closed gsomoza closed 9 years ago
Thanks for contributing! Before I can merge this pull request, can you please make following adjustments:
Maybe it is better to only allow one type of configuration. This makes this component easier to understand / use.
Maybe something like:
<?php
'doctrine-hydrator' => [
'customhydrator' => [
// .... other config
'filters' => [
'custom-filter-name' => [
'condition' => 'and',
'filter' => 'Filter\Key\In\ServiceManager'
],
],
],
],
So:
When this feature is good to go, it is possible to create some build-in features if they are related to specific doctrine problems.
Sure, they're very reasonable changes - I'll have them ready soon.
Looks like the build was failing due to the php-cs-fixer
. Would you like me to make a commit that includes all the changes from the fixer, even if they're not related to my changes?
I already fixed the cs errors on master and merged your commit. Thanks!
I forgot to add the details in the README. Will do that soon.
The configuration details are added to the README. Feel free to add extra information.
Added a bit more info.
Adds the ability to configure filters for the hydrator:
If this is interesting then I can throw a few more things in - e.g. a very easy way to exclude fields (by providing some built-in filters).