collection-crud/src/Entity/PreviouslyOwnedFlash.php

27 lines
645 B
PHP
Raw Normal View History

2018-07-18 11:35:27 -04:00
<?php declare(strict_types=1);
2017-11-30 15:06:13 -05:00
namespace App\Entity;
2017-11-30 15:06:13 -05:00
use Doctrine\ORM\Mapping as ORM;
/**
* Camera.flash
*/
#[ORM\Table(name: 'previously_owned_flash', schema: 'camera')]
#[ORM\Entity]
2017-11-30 15:06:13 -05:00
class PreviouslyOwnedFlash
{
use FlashTrait;
2022-02-18 11:34:25 -05:00
#[ORM\Column(name: 'id', type: 'integer', nullable: false)]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
2022-02-18 11:34:25 -05:00
private int $id;
#[ORM\Column(name: 'received', type: 'boolean', nullable: false, options: ['default' => true])]
2022-02-17 14:00:50 -05:00
private bool $received = true;
2022-02-18 11:34:25 -05:00
#[ORM\Column(name: 'formerly_owned', type: 'boolean', nullable: false, options: ['default' => true])]
2022-02-17 14:00:50 -05:00
private bool $formerlyOwned = true;
2017-11-30 15:06:13 -05:00
}