vipsoft / DoctrineDataFixturesExtension

Doctrine Data Fixtures Extension for Behat
MIT License
21 stars 35 forks source link

$this->backupService is null #36

Closed wiistriker closed 10 years ago

wiistriker commented 10 years ago

$this->backupService created only if use_backup option set:

https://github.com/vipsoft/DoctrineDataFixturesExtension/blob/master/src/VIPSoft/DoctrineDataFixturesExtension/Service/FixtureService.php#L63-66

but https://github.com/vipsoft/DoctrineDataFixturesExtension/blob/master/src/VIPSoft/DoctrineDataFixturesExtension/Service/FixtureService.php#L418 dont check that $this->backupService is not null. So it ends with following error:

Call to a member function hasBackup() on a non-object

robocoder commented 10 years ago

Thanks.