for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* AnimeDb package.
*
* @author Peter Gribanov <[email protected]>
* @copyright Copyright (c) 2011, Peter Gribanov
* @license http://opensource.org/licenses/GPL-3.0 GPL v3
*/
namespace AnimeDb\Bundle\CatalogBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Translatable\Entity\MappedSuperclass\AbstractPersonalTranslation;
* Country translation.
* @ORM\Entity
* @ORM\Table(name="country_translation",
* uniqueConstraints={@ORM\UniqueConstraint(name="country_translation_idx", columns={
* "locale", "object_id", "field"
* })}
* )
class CountryTranslation extends AbstractPersonalTranslation
{
* @ORM\ManyToOne(targetEntity="Country", inversedBy="translations")
* @ORM\JoinColumn(name="object_id", referencedColumnName="id", onDelete="CASCADE")
* @var Country
protected $object;
* @param string $locale
* @param string $field
* @param string $value
public function __construct($locale, $field, $value)
$this->setLocale($locale);
$this->setField($field);
$this->setContent($value);
}