LexikFixturesMapperBundle icon indicating copy to clipboard operation
LexikFixturesMapperBundle copied to clipboard

try to parse csv

Open fmronan opened this issue 9 years ago • 2 comments

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

fmronan avatar Jun 22 '15 08:06 fmronan

Maybe because the bundle is not up to date according to the latest symfony version. But we don't maintain anymore this bundle.

cedric-g avatar Jun 22 '15 11:06 cedric-g

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)

quot17 avatar Aug 18 '15 14:08 quot17