src/Entity/NewsBlockTranslation.php line 23
<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use ApiPlatform\Metadata\ApiResource,
ApiPlatform\Metadata\Get;
use App\Doctrine\Attribute\TargetEntity,
App\Enum\Language,
App\Repository\NewsBlockTranslationRepository;
#[ApiResource(
security: 'is_granted("' . News::class . '")',
operations: [ new Get() ],
extraProperties: ['standard_put' => false],
)]
#[TargetEntity(mappings: [
'logos' => NewsBlockTranslationLogo::class,
'files' => NewsBlockTranslationFile::class
])]
#[ORM\Entity(repositoryClass: NewsBlockTranslationRepository::class)]
class NewsBlockTranslation extends AbstractBlockTranslation
{
public function __construct(NewsBlock $parent, Language $lang)
{
parent::__construct($parent, $lang);
}
}