collection-crud/src/Entity/PreviouslyOwnedCamera.php

29 lines
741 B
PHP

<?php declare(strict_types=1);
namespace App\Entity;
use App\Repository\CameraRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* Camera.previouslyOwnedCamera
*/
#[ORM\Table(name: 'previously_owned_camera', schema: 'collection')]
#[ORM\Index(name: 'IDX_6EF94C6BC54C8C93', columns: ['type_id'])]
#[ORM\Entity(repositoryClass: CameraRepository::class)]
class PreviouslyOwnedCamera
{
use CameraTrait;
#[ORM\Column(name: 'id', type: 'integer', nullable: FALSE)]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
#[ORM\SequenceGenerator(sequenceName: 'prevously_owned_camera_id_seq', allocationSize: 1, initialValue: 1)]
private int $id;
public function getId(): ?int
{
return $this->id;
}
}