Skip to content

Instantly share code, notes, and snippets.

@pdrosos
Created February 11, 2014 08:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pdrosos/8931011 to your computer and use it in GitHub Desktop.
Save pdrosos/8931011 to your computer and use it in GitHub Desktop.
Translation Doctrine Entity in Typo3 Flow 2.1
<?php
namespace My\Gallery\Domain\Model\Translation;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Translatable\Entity\MappedSuperclass\AbstractTranslation;
/**
* @ORM\Table(name="my_gallery_domain_model_gallery_translation", indexes={
* @ORM\Index(name="gallery_translation_idx", columns={"locale", "object_class", "field", "foreign_key"})
* })
* @ORM\Entity(repositoryClass="Gedmo\Translatable\Entity\Repository\TranslationRepository")
*/
class GalleryTranslation extends AbstractTranslation {
/**
* All required columns are mapped through inherited superclass
*/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment