2018-07-18 11:35:27 -04:00
|
|
|
<?php declare(strict_types=1);
|
2017-11-30 15:06:13 -05:00
|
|
|
|
2018-02-14 16:42:39 -05:00
|
|
|
namespace App\Entity;
|
2017-11-30 15:06:13 -05:00
|
|
|
|
2022-02-17 15:48:16 -05:00
|
|
|
use App\Repository\LensesRepository;
|
2017-11-30 15:06:13 -05:00
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Camera.lenses
|
|
|
|
*/
|
2022-02-17 15:10:57 -05:00
|
|
|
#[ORM\Table(name: 'lenses', schema: 'camera')]
|
2022-02-17 15:48:16 -05:00
|
|
|
#[ORM\Entity(repositoryClass: LensesRepository::class)]
|
2017-11-30 15:06:13 -05:00
|
|
|
class Lenses
|
|
|
|
{
|
|
|
|
use LensTrait;
|
2022-02-17 15:10:57 -05:00
|
|
|
#[ORM\Column(name: 'id', type: 'integer', nullable: false)]
|
|
|
|
#[ORM\Id]
|
|
|
|
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
|
|
|
|
#[ORM\SequenceGenerator(sequenceName: 'camera.lenses_id_seq', allocationSize: 1, initialValue: 1)]
|
2022-02-17 15:48:16 -05:00
|
|
|
private int $id;
|
2022-02-18 11:34:25 -05:00
|
|
|
|
2022-02-17 15:10:57 -05:00
|
|
|
#[ORM\Column(name: 'received', type: 'boolean', nullable: false)]
|
2022-02-17 15:48:16 -05:00
|
|
|
private bool $received = false;
|
2022-02-18 11:34:25 -05:00
|
|
|
|
2022-02-17 15:10:57 -05:00
|
|
|
#[ORM\Column(name: 'formerly_owned', type: 'boolean', nullable: false)]
|
2022-02-17 15:48:16 -05:00
|
|
|
private bool $formerlyOwned = false;
|
2017-11-30 15:06:13 -05:00
|
|
|
}
|