collection-crud/src/Entity/PreviouslyOwnedCamera.php

29 lines
741 B
PHP
Raw Normal View History

2018-07-18 11:35:27 -04:00
<?php declare(strict_types=1);
2017-11-09 11:53:01 -05:00
namespace App\Entity;
2017-11-09 11:53:01 -05:00
use App\Repository\CameraRepository;
2017-11-09 11:53:01 -05:00
use Doctrine\ORM\Mapping as ORM;
/**
* Camera.previouslyOwnedCamera
*/
2022-09-29 20:09:31 -04:00
#[ORM\Table(name: 'previously_owned_camera', schema: 'collection')]
#[ORM\Index(name: 'IDX_6EF94C6BC54C8C93', columns: ['type_id'])]
#[ORM\Entity(repositoryClass: CameraRepository::class)]
2017-11-09 11:53:01 -05:00
class PreviouslyOwnedCamera
{
2022-03-03 10:53:48 -05:00
use CameraTrait;
2022-03-03 11:15:12 -05:00
#[ORM\Column(name: 'id', type: 'integer', nullable: FALSE)]
2022-03-03 10:53:48 -05:00
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
#[ORM\SequenceGenerator(sequenceName: 'prevously_owned_camera_id_seq', allocationSize: 1, initialValue: 1)]
private int $id;
2022-09-29 20:09:31 -04:00
public function getId(): ?int
{
return $this->id;
}
2017-11-09 11:53:01 -05:00
}