$contentIdList[] = $contentId; $image = new \Thelia\Model\ContentImage(); $image->setContentId($contentId); generate_image($image, 'content', $contentId); $document = new \Thelia\Model\ContentDocument(); $document->setContentId($contentId); generate_document($document, 'content', $contentId); } } } echo "Creating brands\n"; $brandIdList = []; for ($k = 0; $k < 10; $k++) { $brand = new Thelia\Model\Brand(); $brand->setVisible(1); $brand->setPosition($k + 1); setI18n($brand); $brand->save(); $brandId = $brand->getId(); $brandIdList[] = $brandId; $image = new \Thelia\Model\BrandImage(); $image->setBrandId($brandId); generate_image($image, 'brand', $brandId); $document = new \Thelia\Model\BrandDocument(); $document->setBrandId($brandId); generate_document($document, 'brand', $brandId); } echo "Creating categories and products\n"; //categories and products $productIdList = array(); $virtualProductList = array();