sylius

    0熱度

    1回答

    protected function execute(InputInterface $input, OutputInterface $output) { $factory = $this->getContainer()->get('sylius.factory.product'); $manager = $this->getContainer()->get('sy

    0熱度

    2回答

    我不明白爲什麼我無法創建自定義服務。我遇到了這兩種技術的錯誤。我在文檔中找不到任何關於此的信息。 # app/config/services.yml services: jdf.utils.phphelper: class: JDF\Utils\PhpHelper // src/JDF/Utils/PhpHelper.php namespace JDF\Uti

    1熱度

    2回答

    我試圖在sylius中創建一個產品的表單。我想添加一個「PackItem」的集合。 然而,只有最後一個項目被添加,當我加"by_reference" => false我有這個問題 無法確定財產「產品」訪問類型。 這是我的代碼 #ProductTypeExtension.php public function buildForm(FormBuilderInterface $builder, ar

    1熱度

    1回答

    我正在嘗試在Sylius上創建一個帶有產品的表單。產品具有屬性「產品」(這是產品的集合)。因此,在我的表單中,我使用了CollectionType,但只有最後一項保存在數據庫中。 Product.php /** * @ORM\Entity * @ORM\Table(name="sylius_product") */ class Product extends BaseProduct {

    1熱度

    1回答

    我已經添加了具有關係附件 - 產品ManyToOne的產品附件。模式正確創建,問題是,當我保存產品時,product_id沒有在附件表中設置,我通過使用DataTransformer解決了手動添加產品參考的問題。另一個問題是我無法從CollectionType中刪除附件。 ProductAttachment類: <?php namespace AppBundle\Entity;

    0熱度

    1回答

    我正在嘗試安裝併爲我的web應用程序配置條紋。 我必須使用Sylius 0.18.0。 我這個政黨成員安裝條紋:http://sylius-older.readthedocs.io/en/latest/cookbook/stripe.html(我也嘗試了版本4.8) 但是我有一個問題: Fatal error: Uncaught exception 'Symfony\Component\Confi

    1熱度

    1回答

    我開始瘋狂使Sylius產品圖像可翻譯。我需要一個ProductImage名稱和seo用於SEO目的。 我已經做的是:通過PARAM 覆蓋ProductIamge:sylius.model.product_image.class 新增TranslatableInterface和所需的功能,它 新增ProductImageTranslation實體 添加映射文件ProductImage.orm.ym

    1熱度

    1回答

    允許的最大長度我只是作曲家和exec php bin/console server:run更新Sylius,我已經 得到這個錯誤: Warning: glob(): Pattern exceeds the maximum allowed length of 260 characters in C:\project\vendor\sylius\sylius\src\Sylius\Bundle\Adm

    0熱度

    1回答

    如何覆蓋產品表格網格以在編輯和刪除旁邊添加新按鈕? 我發現:供應商\ sylius \ sylius的\ src \ Sylius \包\ AdminBundle \資源\ CONFIG \網格\ product.yml 按鈕應該打開模式按鈕,HTML內容。謝謝,

    1熱度

    1回答

    我在\vendor文件夾中有一個實體,我無法更改/觸摸,但是當我在項目中使用它時,我需要爲該對象添加一個參數(description)。 所以我有代碼: namespace SoftNation\Sylius\MyExtendBundle\Entity; use Doctrine\ORM\Mapping as ORM; use SoftNation\Sylius\ExtendBundle\E