src/ContentBundle/Entity/Post.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\ContentBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use PN\ContentBundle\Entity\Post as BasePost;
  5. use PN\ContentBundle\Model\PostTrait;
  6. use PN\LocaleBundle\Model\Translatable;
  7. /**
  8. * Post
  9. * @ORM\Table(name="post")
  10. * @ORM\Entity(repositoryClass="App\ContentBundle\Repository\PostRepository")
  11. */
  12. class Post extends BasePost implements Translatable
  13. {
  14. use PostTrait;
  15. /**
  16. * @ORM\OneToMany(targetEntity="App\ContentBundle\Entity\Translation\PostTranslation", mappedBy="translatable", cascade={"ALL"}, orphanRemoval=true, fetch="LAZY")
  17. */
  18. protected $translations;
  19. }