<?php
namespace App\Entity\Declaration;
use ApiPlatform\Core\Annotation\ApiResource;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="brunex_declaration_detail_document")
* @ApiResource(routePrefix="/brunex/declaration")
*/
class DetailDocument extends Document
{
/**
* @var Product
* @ORM\ManyToOne(targetEntity="Product", inversedBy="detailDocuments")
* @ORM\JoinColumn(onDelete="CASCADE")
*/
protected $product;
}