src/Entity/AuthorTranslation.php line 18
<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use ApiPlatform\Metadata\ApiResource,
ApiPlatform\Metadata\Get;
use App\Enum\Language,
App\Repository\AuthorTranslationRepository;
#[ApiResource(
security: 'is_granted("' . Author::class . '")',
operations: [ new Get() ],
extraProperties: ['standard_put' => false],
)]
#[ORM\Entity(repositoryClass: AuthorTranslationRepository::class)]
class AuthorTranslation extends AbstractAuthorTranslation
{
public function __construct(Author $parent, Language $lang)
{
parent::__construct($parent, $lang);
}
}