collection-crud/src/Entity/PreviouslyOwnedCamera.php

28 lines
676 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\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;
}
}