From c0bf7110d2e340233258fb95b038db4f1f913d97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Chans=C3=A9aume?= Date: Fri, 1 Aug 2014 09:58:00 +0200 Subject: [PATCH] changed default customer password, added missing --- setup/import.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup/import.php b/setup/import.php index ee639946d..e8249f90d 100644 --- a/setup/import.php +++ b/setup/import.php @@ -143,7 +143,7 @@ function createProduct($faker, $categories, $brands, $contents, $template, $attr ->save($con); // Set the position - $product->setPosition($product->getNextPosition())->save(); + $product->setPosition($product->getNextPosition())->save($con); $images = explode(';', $data[10]); @@ -269,7 +269,7 @@ function createCustomer($faker, $con){ "Clermont-Ferrand", 64, "test@thelia.net", - "azerty" + "thelia" ); for ($j = 0; $j <= 2; $j++) { $address = new Thelia\Model\Address(); @@ -685,8 +685,8 @@ function clearTables($con) \Thelia\Model\ProductImageQuery::create()->find($con)->delete($con); $customer = Thelia\Model\CustomerQuery::create() - ->find(); - $customer->delete(); + ->find($con); + $customer->delete($con); echo "Tables cleared with success\n";