Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/286.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 在每次翻译中上传一张2lix格式的翻译图像_Php_Symfony_A2lix Translation - Fatal编程技术网

Php 在每次翻译中上传一张2lix格式的翻译图像

Php 在每次翻译中上传一张2lix格式的翻译图像,php,symfony,a2lix-translation,Php,Symfony,A2lix Translation,我试图上传图像在每个翻译,但它不工作 我的翻译实体是 <?php namespace Application\AdminBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; /** * @ORM\Entit

我试图上传图像在每个翻译,但它不工作 我的翻译实体是

<?php

namespace Application\AdminBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;

/**
 * @ORM\Entity
 * @ORM\Table(name="freemoni_franchise_translation")
 * @UniqueEntity("title")
 * @UniqueEntity("franchiseName")
 */
class FreemoniFranchiseTranslation implements \A2lix\I18nDoctrineBundle\Doctrine\Interfaces\OneLocaleInterface {

    use \A2lix\I18nDoctrineBundle\Doctrine\ORM\Util\Translation;

    /**
     * @var string
     *
     * @ORM\Column(name="franchiseName", type="string", length=255)
     */
    private $franchiseName;

    /**
     * @var string
     *
     * @ORM\Column(name="franchiseLogo", type="string", length=255)

     * @ORM\OneToMany(targetEntity="Application\AdminBundle\Entity\Image", mappedBy="FreemoniFranchiseTranslation", indexBy="locale", cascade={"all"}, orphanRemoval=true)
     */
    private $franchiseLogo;



    public function getId() {
        return $this->id;
    }



    /**
     * Set franchiseName
     *
     * @param string $franchiseName
     *
     * @return FreemoniFranchise
     */
    public function setFranchiseName(\Application\AdminBundle\Entity\image $franchiseName=null) {
        $this->franchiseName = $franchiseName;

        return $this;
    }

    /**
     * Get franchiseName
     *
     * @return string
     */
    public function getFranchiseName() {
        return $this->franchiseName;
    }

    /**
     * Set franchiseLogo
     *
     * @param string $franchiseLogo
     *
     * @return FreemoniFranchise
     */
    public function setFranchiseLogo($franchiseLogo) {
        $this->franchiseLogo = $franchiseLogo;

        return $this;
    }

    /**
     * Get franchiseLogo
     *
     * @return string
     */
    public function getFranchiseLogo() {

        return $this->franchiseLogo;
    }



}

看一看。我看了一下这个我在那里找不到最终解决方案的地方