collection-crud/src/Entity/Camera.php

28 lines
578 B
PHP
Raw Normal View History

2017-11-30 15:06:13 -05:00
<?php
namespace CameraBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Camera
*
* @ORM\Table(name="camera", schema="camera", indexes={
@ORM\Index(name="IDX_747C826FC54C8C93", columns={"type_id"})
})
* @ORM\Entity(repositoryClass="CameraBundle\Repository\CameraRepository")
2017-11-30 15:06:13 -05:00
*/
2018-02-14 16:19:26 -05:00
class Camera {
2017-11-30 15:06:13 -05:00
use CameraTrait;
/**
* @var integer
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
2018-01-04 10:42:36 -05:00
* @ORM\GeneratedValue(strategy="IDENTITY")
2018-02-14 15:08:03 -05:00
* @ORM\SequenceGenerator(sequenceName="camera__id_seq", allocationSize=1, initialValue=1)
2017-11-30 15:06:13 -05:00
*/
private $id;
}