changed default customer password, added missing
This commit is contained in:
committed by
Julien Chanseaume
parent
7f4b1d24c8
commit
c0bf7110d2
@@ -143,7 +143,7 @@ function createProduct($faker, $categories, $brands, $contents, $template, $attr
|
|||||||
->save($con);
|
->save($con);
|
||||||
|
|
||||||
// Set the position
|
// Set the position
|
||||||
$product->setPosition($product->getNextPosition())->save();
|
$product->setPosition($product->getNextPosition())->save($con);
|
||||||
|
|
||||||
$images = explode(';', $data[10]);
|
$images = explode(';', $data[10]);
|
||||||
|
|
||||||
@@ -269,7 +269,7 @@ function createCustomer($faker, $con){
|
|||||||
"Clermont-Ferrand",
|
"Clermont-Ferrand",
|
||||||
64,
|
64,
|
||||||
"test@thelia.net",
|
"test@thelia.net",
|
||||||
"azerty"
|
"thelia"
|
||||||
);
|
);
|
||||||
for ($j = 0; $j <= 2; $j++) {
|
for ($j = 0; $j <= 2; $j++) {
|
||||||
$address = new Thelia\Model\Address();
|
$address = new Thelia\Model\Address();
|
||||||
@@ -685,8 +685,8 @@ function clearTables($con)
|
|||||||
\Thelia\Model\ProductImageQuery::create()->find($con)->delete($con);
|
\Thelia\Model\ProductImageQuery::create()->find($con)->delete($con);
|
||||||
|
|
||||||
$customer = Thelia\Model\CustomerQuery::create()
|
$customer = Thelia\Model\CustomerQuery::create()
|
||||||
->find();
|
->find($con);
|
||||||
$customer->delete();
|
$customer->delete($con);
|
||||||
|
|
||||||
echo "Tables cleared with success\n";
|
echo "Tables cleared with success\n";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user