add all substitution for loop category

This commit is contained in:
Manuel Raynaud
2013-05-06 15:22:33 +02:00
parent 046f0e0f94
commit 78dd8514d1
6 changed files with 146 additions and 3 deletions

View File

@@ -37,6 +37,16 @@ try {
$jeans->save();
//third category
$other = new Thelia\Model\Category();
$other->setParent($jeans->getId());
$other->setVisible(1);
$other->setPosition(3);
$other->setDescription($faker->text(255));
$other->setTitle($faker->bs);
$other->save();
for ($i=1; $i <= 5; $i++) {
$product = new \Thelia\Model\Product();
$product->addCategory($sweet);