Open xi-ao opened 1 year ago
any new? same here :/
Somehow, modifying the value to either 1 or 4 doesn't work for me either. Only way I can make the installation work is to exclude the customer sample data installation completely by commenting out the setup line inside vendor/magento/module-customer-sample-data/Setup/Installer.php .....
/**
* {@inheritdoc}
*/
public function install()
{
//$this->customerSetup->install(['Magento_CustomerSampleData::fixtures/customer_profile.csv']);
}
Any thoughts?
Using a clean Docker stack based on the versions mentioned in the official requirements page, I always end up with the following error when trying to install the sample data:
When digging up a bit, I can figure out this is caused by the following file:
vendor/magento/module-customer-sample-data/fixtures/customer_profile.csv
, and because it has the ID2
hardcoded in thegender
column:Looking at the database, I can see that the IDs seem to have a increment step of 3 and not 1, which means that
2
cannot occur when using a single database node (typical configuration on a developer instance).(
58
is the ID of th attributegender
on customers)I guess hardcoding IDs is a bad practice anyway, so perhaps the best solution would be to use the label in that file (
Female
) and adapt the injection code to it.