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;
}
}
看一看。我看了一下这个我在那里找不到最终解决方案的地方