Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 838 Bytes

entity.md

File metadata and controls

42 lines (32 loc) · 838 Bytes

Extends entity

<?php

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;

use Tleroch\NewsBundle\Entity\News as TlerochNews;

/**
 * @ORM\Table(name="news")
 * @Gedmo\TranslationEntity(class="Tleroch\NewsBundle\Entity\Translation\NewsTranslation")
 * @ORM\Entity(repositoryClass="AppBundle\Repository\NewsRepository")
 */
class News extends TlerochNews {
    // You can add here custom attributes / methods
}

Extends Repository

<?php

namespace AppBundle\Repository;

use Tleroch\NewsBundle\Entity\Repository\NewsRepository as NewsRepo;

/**
 * NewsRepository
 *
 * This class was generated by the Doctrine ORM. Add your own custom
 * repository methods below.
 */
class NewsRepository extends NewsRepo {
    //Your customs methods
}