LexikFixturesMapperBundle
LexikFixturesMapperBundle copied to clipboard
try to parse csv
I' try to use your bundle but I have this error
[Symfony\Component\Debug\Exception\ContextErrorException] Catchable Fatal Error: Argument 3 passed to Lexik\Bundle\FixturesMapperBund le\Loader\AbstractLoader::__construct() must be an instance of Symfony\Comp onent\Validator\Validator, instance of Symfony\Component\Validator\Validato r\LegacyValidator given, called in C:\wamp\www\genus\app\cache\dev\appDevDe bugProjectContainer.php on line 2124 and defined
Maybe because the bundle is not up to date according to the latest symfony version. But we don't maintain anymore this bundle.
In Lexik/Bundle/FixturesMapperBundle/Loader/AbstractLoader.php and Lexik/Bundle/FixturesMapperBundle/Mapper/Mapper.php, just find and replace :
- use Symfony\Component\Validator\Validator; by use Symfony\Component\Validator\Validator\LegacyValidator; (after namespace)
- Validator by LegacyValidator (as argument of constructor)