PIM-3244 : fix memory leak on products with media export
PIM-3244 : re-work memory leak fix to ensure backward compatibility
Merge pull request #1640 from akeneo/fix/PIM-3244

Fixed PIM-3244 memory leak on products with media export
Merge branch 'master' into fix/merge-1.2

Conflicts:
	src/Pim/Bundle/BaseConnectorBundle/Processor/ProductToFlatArrayProcessor.php
PIM-3244 : fix spec for ProductToFlatArrayProcessor
PIM-3244 : update csv product writer to remove deprecated media manager
Merge pull request #1645 from akeneo/fix/merge-1.2

PIM-3244 : merge 1.2 fix on master