collection-crud/src/Entity/PreviouslyOwnedLenses.php

33 lines
734 B
PHP

<?php declare(strict_types=1);
namespace App\Entity;
use App\Repository\LensesRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* Camera.previouslyOwnedLenses
*/
#[ORM\Table(name: 'previously_owned_lenses', schema: 'camera')]
#[ORM\Entity(repositoryClass: LensesRepository::class)]
class PreviouslyOwnedLenses
{
use LensTrait;
#[ORM\Column(name: 'id', type: 'integer', nullable: false)]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
private int $id;
/**
* @var boolean
*/
#[ORM\Column(name: 'received', type: 'boolean', nullable: false)]
private bool $received = true;
/**
* @var boolean
*/
#[ORM\Column(name: 'formerly_owned', type: 'boolean', nullable: false)]
private bool $formerlyOwned = true;
}