Remove backup files, and update money-type getters/setters to make Doctrine happier
This commit is contained in:
parent
078f79c638
commit
a6a0872195
@ -1,475 +0,0 @@
|
||||
<?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
|
||||
*/
|
||||
class Camera
|
||||
{
|
||||
/**
|
||||
* @var integer
|
||||
*
|
||||
* @ORM\Column(name="id", type="integer", nullable=false)
|
||||
* @ORM\Id
|
||||
* @ORM\GeneratedValue(strategy="SEQUENCE")
|
||||
* @ORM\SequenceGenerator(sequenceName="camera_id_seq", allocationSize=1, initialValue=1)
|
||||
*/
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="brand", type="string", length=64, nullable=false)
|
||||
*/
|
||||
private $brand;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="mount", type="string", length=32, nullable=false)
|
||||
*/
|
||||
private $mount;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="model", type="string", length=255, nullable=false)
|
||||
*/
|
||||
private $model;
|
||||
|
||||
/**
|
||||
* @var boolean
|
||||
*
|
||||
* @ORM\Column(name="is_digital", type="boolean", nullable=false)
|
||||
*/
|
||||
private $isDigital;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="crop_factor", type="decimal", precision=10, scale=0, nullable=false)
|
||||
*/
|
||||
private $cropFactor = '1.0';
|
||||
|
||||
/**
|
||||
* @var boolean
|
||||
*
|
||||
* @ORM\Column(name="is_working", type="boolean", nullable=false)
|
||||
*/
|
||||
private $isWorking;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="notes", type="text", nullable=true)
|
||||
*/
|
||||
private $notes;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="serial", type="string", length=20, nullable=false)
|
||||
*/
|
||||
private $serial;
|
||||
|
||||
/**
|
||||
* @var boolean
|
||||
*
|
||||
* @ORM\Column(name="formerly_owned", type="boolean", nullable=false)
|
||||
*/
|
||||
private $formerlyOwned = false;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="purchase_price", type="decimal", precision=10, scale=0, nullable=true)
|
||||
*/
|
||||
private $purchasePrice;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="battery_type", type="string", nullable=true)
|
||||
*/
|
||||
private $batteryType;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="film_format", type="string", nullable=true)
|
||||
*/
|
||||
private $filmFormat = '135';
|
||||
|
||||
/**
|
||||
* @var boolean
|
||||
*
|
||||
* @ORM\Column(name="received", type="boolean", nullable=true)
|
||||
*/
|
||||
private $received = false;
|
||||
|
||||
/**
|
||||
* @var \CameraType
|
||||
*
|
||||
* @ORM\ManyToOne(targetEntity="CameraType")
|
||||
* @ORM\JoinColumns({
|
||||
* @ORM\JoinColumn(name="type_id", referencedColumnName="id")
|
||||
* })
|
||||
*/
|
||||
private $type;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get id
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set brand
|
||||
*
|
||||
* @param string $brand
|
||||
*
|
||||
* @return Camera
|
||||
*/
|
||||
public function setBrand($brand)
|
||||
{
|
||||
$this->brand = $brand;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get brand
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBrand()
|
||||
{
|
||||
return $this->brand;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set mount
|
||||
*
|
||||
* @param string $mount
|
||||
*
|
||||
* @return Camera
|
||||
*/
|
||||
public function setMount($mount)
|
||||
{
|
||||
$this->mount = $mount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get mount
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMount()
|
||||
{
|
||||
return $this->mount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set model
|
||||
*
|
||||
* @param string $model
|
||||
*
|
||||
* @return Camera
|
||||
*/
|
||||
public function setModel($model)
|
||||
{
|
||||
$this->model = $model;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get model
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getModel()
|
||||
{
|
||||
return $this->model;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set isDigital
|
||||
*
|
||||
* @param boolean $isDigital
|
||||
*
|
||||
* @return Camera
|
||||
*/
|
||||
public function setIsDigital($isDigital)
|
||||
{
|
||||
$this->isDigital = $isDigital;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get isDigital
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function getIsDigital()
|
||||
{
|
||||
return $this->isDigital;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set cropFactor
|
||||
*
|
||||
* @param string $cropFactor
|
||||
*
|
||||
* @return Camera
|
||||
*/
|
||||
public function setCropFactor($cropFactor)
|
||||
{
|
||||
$this->cropFactor = $cropFactor;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get cropFactor
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCropFactor()
|
||||
{
|
||||
return $this->cropFactor;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set isWorking
|
||||
*
|
||||
* @param boolean $isWorking
|
||||
*
|
||||
* @return Camera
|
||||
*/
|
||||
public function setIsWorking($isWorking)
|
||||
{
|
||||
$this->isWorking = $isWorking;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get isWorking
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function getIsWorking()
|
||||
{
|
||||
return $this->isWorking;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set notes
|
||||
*
|
||||
* @param string $notes
|
||||
*
|
||||
* @return Camera
|
||||
*/
|
||||
public function setNotes($notes)
|
||||
{
|
||||
$this->notes = $notes;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get notes
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNotes()
|
||||
{
|
||||
return $this->notes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set serial
|
||||
*
|
||||
* @param string $serial
|
||||
*
|
||||
* @return Camera
|
||||
*/
|
||||
public function setSerial($serial)
|
||||
{
|
||||
$this->serial = $serial;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get serial
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSerial()
|
||||
{
|
||||
return $this->serial;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set formerlyOwned
|
||||
*
|
||||
* @param boolean $formerlyOwned
|
||||
*
|
||||
* @return Camera
|
||||
*/
|
||||
public function setFormerlyOwned($formerlyOwned)
|
||||
{
|
||||
$this->formerlyOwned = $formerlyOwned;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get formerlyOwned
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function getFormerlyOwned()
|
||||
{
|
||||
return $this->formerlyOwned;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set purchasePrice
|
||||
*
|
||||
* @param string $purchasePrice
|
||||
*
|
||||
* @return Camera
|
||||
*/
|
||||
public function setPurchasePrice($purchasePrice)
|
||||
{
|
||||
$this->purchasePrice = $purchasePrice;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get purchasePrice
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getPurchasePrice()
|
||||
{
|
||||
return (float) str_replace('$', '', $this->purchasePrice);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set batteryType
|
||||
*
|
||||
* @param string $batteryType
|
||||
*
|
||||
* @return Camera
|
||||
*/
|
||||
public function setBatteryType($batteryType)
|
||||
{
|
||||
$this->batteryType = $batteryType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get batteryType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBatteryType()
|
||||
{
|
||||
return $this->batteryType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set filmFormat
|
||||
*
|
||||
* @param string $filmFormat
|
||||
*
|
||||
* @return Camera
|
||||
*/
|
||||
public function setFilmFormat($filmFormat)
|
||||
{
|
||||
$this->filmFormat = $filmFormat;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get filmFormat
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFilmFormat()
|
||||
{
|
||||
return $this->filmFormat;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set received
|
||||
*
|
||||
* @param boolean $received
|
||||
*
|
||||
* @return Camera
|
||||
*/
|
||||
public function setReceived($received)
|
||||
{
|
||||
$this->received = $received;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get received
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function getReceived()
|
||||
{
|
||||
return $this->received;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set type
|
||||
*
|
||||
* @param \CameraBundle\Entity\CameraType $type
|
||||
*
|
||||
* @return Camera
|
||||
*/
|
||||
public function setType(\CameraBundle\Entity\CameraType $type = null)
|
||||
{
|
||||
$this->type = $type;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get type
|
||||
*
|
||||
* @return \CameraBundle\Entity\CameraType
|
||||
*/
|
||||
public function getType()
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace CameraBundle\Entity;
|
||||
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
/**
|
||||
* CameraType
|
||||
*
|
||||
* @ORM\Table(name="camera_type", schema="camera")
|
||||
* @ORM\Entity
|
||||
*/
|
||||
class CameraType
|
||||
{
|
||||
/**
|
||||
* @var integer
|
||||
*
|
||||
* @ORM\Column(name="id", type="integer", nullable=false)
|
||||
* @ORM\Id
|
||||
* @ORM\GeneratedValue(strategy="SEQUENCE")
|
||||
* @ORM\SequenceGenerator(sequenceName="camera.camera_type_id_seq", allocationSize=1, initialValue=1)
|
||||
*/
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="type", type="string", length=255, nullable=false)
|
||||
*/
|
||||
private $type;
|
||||
|
||||
|
||||
}
|
||||
|
@ -315,11 +315,11 @@ class Flash
|
||||
*
|
||||
* @param string $purchasePrice
|
||||
*
|
||||
* @return Flash
|
||||
* @return Camera
|
||||
*/
|
||||
public function setPurchasePrice($purchasePrice)
|
||||
{
|
||||
$this->purchasePrice = $purchasePrice;
|
||||
$this->purchasePrice = $purchasePrice ?? 0;
|
||||
|
||||
return $this;
|
||||
}
|
||||
@ -331,7 +331,7 @@ class Flash
|
||||
*/
|
||||
public function getPurchasePrice()
|
||||
{
|
||||
return $this->purchasePrice;
|
||||
return (double) str_replace('$', '', (string)$this->purchasePrice) ?? 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1,111 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace CameraBundle\Entity;
|
||||
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
/**
|
||||
* Camera.flash
|
||||
*
|
||||
* @ORM\Table(name="flash", schema="camera")
|
||||
* @ORM\Entity
|
||||
*/
|
||||
class Flash
|
||||
{
|
||||
/**
|
||||
* @var integer
|
||||
*
|
||||
* @ORM\Column(name="id", type="integer", nullable=false)
|
||||
* @ORM\Id
|
||||
* @ORM\GeneratedValue(strategy="SEQUENCE")
|
||||
* @ORM\SequenceGenerator(sequenceName="camera.flash_id_seq", allocationSize=1, initialValue=1)
|
||||
*/
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="brand", type="string", nullable=false)
|
||||
*/
|
||||
private $brand;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="model", type="string", nullable=false)
|
||||
*/
|
||||
private $model;
|
||||
|
||||
/**
|
||||
* @var boolean
|
||||
*
|
||||
* @ORM\Column(name="is_auto_flash", type="boolean", nullable=false)
|
||||
*/
|
||||
private $isAutoFlash = false;
|
||||
|
||||
/**
|
||||
* @var boolean
|
||||
*
|
||||
* @ORM\Column(name="is_ttl", type="boolean", nullable=false)
|
||||
*/
|
||||
private $isTtl = false;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="ttl_type", type="string", nullable=false)
|
||||
*/
|
||||
private $ttlType = 'N / A';
|
||||
|
||||
/**
|
||||
* @var boolean
|
||||
*
|
||||
* @ORM\Column(name="is_p_ttl", type="boolean", nullable=false)
|
||||
*/
|
||||
private $isPTtl = false;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="p_ttl_type", type="string", nullable=false)
|
||||
*/
|
||||
private $pTtlType = 'N / A';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="guide_number", type="string", nullable=true)
|
||||
*/
|
||||
private $guideNumber;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="purchase_price", type="decimal", precision=10, scale=0, nullable=true)
|
||||
*/
|
||||
private $purchasePrice;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="batteries", type="string", nullable=false)
|
||||
*/
|
||||
private $batteries;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="notes", type="text", nullable=true)
|
||||
*/
|
||||
private $notes;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="serial", type="string", nullable=true)
|
||||
*/
|
||||
private $serial;
|
||||
|
||||
|
||||
}
|
||||
|
@ -395,11 +395,11 @@ class Lenses
|
||||
*
|
||||
* @param string $purchasePrice
|
||||
*
|
||||
* @return Lenses
|
||||
* @return Camera
|
||||
*/
|
||||
public function setPurchasePrice($purchasePrice)
|
||||
{
|
||||
$this->purchasePrice = $purchasePrice;
|
||||
$this->purchasePrice = $purchasePrice ?? 0;
|
||||
|
||||
return $this;
|
||||
}
|
||||
@ -411,7 +411,7 @@ class Lenses
|
||||
*/
|
||||
public function getPurchasePrice()
|
||||
{
|
||||
return $this->purchasePrice;
|
||||
return (double) str_replace('$', '', (string)$this->purchasePrice) ?? 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1,167 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace CameraBundle\Entity;
|
||||
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
/**
|
||||
* Camera.lenses
|
||||
*
|
||||
* @ORM\Table(name="lenses", schema="camera")
|
||||
* @ORM\Entity
|
||||
*/
|
||||
class Lenses
|
||||
{
|
||||
/**
|
||||
* @var integer
|
||||
*
|
||||
* @ORM\Column(name="id", type="integer", nullable=false)
|
||||
* @ORM\Id
|
||||
* @ORM\GeneratedValue(strategy="SEQUENCE")
|
||||
* @ORM\SequenceGenerator(sequenceName="camera.lenses_id_seq", allocationSize=1, initialValue=1)
|
||||
*/
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="brand", type="string", length=64, nullable=true)
|
||||
*/
|
||||
private $brand;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="coatings", type="string", length=64, nullable=true)
|
||||
*/
|
||||
private $coatings;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="product_line", type="string", length=64, nullable=true)
|
||||
*/
|
||||
private $productLine;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="model", type="string", length=64, nullable=true)
|
||||
*/
|
||||
private $model;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="min_f_stop", type="string", length=10, nullable=true)
|
||||
*/
|
||||
private $minFStop;
|
||||
|
||||
/**
|
||||
* @var float
|
||||
*
|
||||
* @ORM\Column(name="max_f_stop", type="float", precision=10, scale=0, nullable=true)
|
||||
*/
|
||||
private $maxFStop;
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*
|
||||
* @ORM\Column(name="min_focal_length", type="integer", nullable=true)
|
||||
*/
|
||||
private $minFocalLength;
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*
|
||||
* @ORM\Column(name="max_focal_length", type="integer", nullable=true)
|
||||
*/
|
||||
private $maxFocalLength;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="serial", type="string", length=10, nullable=true)
|
||||
*/
|
||||
private $serial;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="purchase_price", type="decimal", precision=10, scale=0, nullable=true)
|
||||
*/
|
||||
private $purchasePrice;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="notes", type="text", nullable=true)
|
||||
*/
|
||||
private $notes;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="mount", type="string", length=40, nullable=true)
|
||||
*/
|
||||
private $mount;
|
||||
|
||||
/**
|
||||
* @var boolean
|
||||
*
|
||||
* @ORM\Column(name="received", type="boolean", nullable=false)
|
||||
*/
|
||||
private $received = false;
|
||||
|
||||
/**
|
||||
* @var boolean
|
||||
*
|
||||
* @ORM\Column(name="formerly_owned", type="boolean", nullable=false)
|
||||
*/
|
||||
private $formerlyOwned = false;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="front_filter_size", type="decimal", precision=10, scale=0, nullable=true)
|
||||
*/
|
||||
private $frontFilterSize;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="rear_filter_size", type="decimal", precision=10, scale=0, nullable=true)
|
||||
*/
|
||||
private $rearFilterSize;
|
||||
|
||||
/**
|
||||
* @var boolean
|
||||
*
|
||||
* @ORM\Column(name="is_teleconverter", type="boolean", nullable=false)
|
||||
*/
|
||||
private $isTeleconverter = false;
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*
|
||||
* @ORM\Column(name="design_elements", type="smallint", nullable=true)
|
||||
*/
|
||||
private $designElements;
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*
|
||||
* @ORM\Column(name="design_groups", type="smallint", nullable=true)
|
||||
*/
|
||||
private $designGroups;
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*
|
||||
* @ORM\Column(name="aperture_blades", type="smallint", nullable=true)
|
||||
*/
|
||||
private $apertureBlades;
|
||||
|
||||
|
||||
}
|
||||
|
@ -1,128 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace CameraBundle\Entity;
|
||||
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
/**
|
||||
* Camera.previouslyOwnedCamera
|
||||
*
|
||||
* @ORM\Table(name="previously_owned_camera", schema="camera", indexes={@ORM\Index(name="IDX_6EF94C6BC54C8C93", columns={"type_id"})})
|
||||
* @ORM\Entity
|
||||
*/
|
||||
class PreviouslyOwnedCamera
|
||||
{
|
||||
/**
|
||||
* @var integer
|
||||
*
|
||||
* @ORM\Column(name="id", type="integer", nullable=false)
|
||||
* @ORM\Id
|
||||
* @ORM\GeneratedValue(strategy="SEQUENCE")
|
||||
* @ORM\SequenceGenerator(sequenceName="camera.previously_owned_camera_id_seq", allocationSize=1, initialValue=1)
|
||||
*/
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="brand", type="string", length=64, nullable=false)
|
||||
*/
|
||||
private $brand;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="mount", type="string", length=10, nullable=false)
|
||||
*/
|
||||
private $mount;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="model", type="string", length=255, nullable=false)
|
||||
*/
|
||||
private $model;
|
||||
|
||||
/**
|
||||
* @var boolean
|
||||
*
|
||||
* @ORM\Column(name="is_digital", type="boolean", nullable=false)
|
||||
*/
|
||||
private $isDigital;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="crop_factor", type="decimal", precision=10, scale=0, nullable=false)
|
||||
*/
|
||||
private $cropFactor = '1.0';
|
||||
|
||||
/**
|
||||
* @var boolean
|
||||
*
|
||||
* @ORM\Column(name="is_working", type="boolean", nullable=false)
|
||||
*/
|
||||
private $isWorking;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="notes", type="text", nullable=true)
|
||||
*/
|
||||
private $notes;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="serial", type="string", length=20, nullable=false)
|
||||
*/
|
||||
private $serial;
|
||||
|
||||
/**
|
||||
* @var boolean
|
||||
*
|
||||
* @ORM\Column(name="formerly_owned", type="boolean", nullable=false)
|
||||
*/
|
||||
private $formerlyOwned = false;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="purchase_price", type="decimal", precision=10, scale=0, nullable=true)
|
||||
*/
|
||||
private $purchasePrice;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="battery_type", type="string", nullable=true)
|
||||
*/
|
||||
private $batteryType;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="film_format", type="string", nullable=true)
|
||||
*/
|
||||
private $filmFormat = '135';
|
||||
|
||||
/**
|
||||
* @var boolean
|
||||
*
|
||||
* @ORM\Column(name="received", type="boolean", nullable=true)
|
||||
*/
|
||||
private $received = true;
|
||||
|
||||
/**
|
||||
* @var \Camera.cameraType
|
||||
*
|
||||
* @ORM\ManyToOne(targetEntity="CameraType")
|
||||
* @ORM\JoinColumns({
|
||||
* @ORM\JoinColumn(name="type_id", referencedColumnName="id")
|
||||
* })
|
||||
*/
|
||||
private $type;
|
||||
|
||||
|
||||
}
|
||||
|
@ -1,167 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace CameraBundle\Entity;
|
||||
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
/**
|
||||
* Camera.previouslyOwnedLenses
|
||||
*
|
||||
* @ORM\Table(name="previously_owned_lenses", schema="camera")
|
||||
* @ORM\Entity
|
||||
*/
|
||||
class PreviouslyOwnedLenses
|
||||
{
|
||||
/**
|
||||
* @var integer
|
||||
*
|
||||
* @ORM\Column(name="id", type="integer", nullable=false)
|
||||
* @ORM\Id
|
||||
* @ORM\GeneratedValue(strategy="SEQUENCE")
|
||||
* @ORM\SequenceGenerator(sequenceName="camera.previously_owned_lenses_id_seq", allocationSize=1, initialValue=1)
|
||||
*/
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="brand", type="string", length=64, nullable=true)
|
||||
*/
|
||||
private $brand;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="coatings", type="string", length=64, nullable=true)
|
||||
*/
|
||||
private $coatings;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="product_line", type="string", length=64, nullable=true)
|
||||
*/
|
||||
private $productLine;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="model", type="string", length=64, nullable=true)
|
||||
*/
|
||||
private $model;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="min_f_stop", type="string", length=10, nullable=true)
|
||||
*/
|
||||
private $minFStop;
|
||||
|
||||
/**
|
||||
* @var float
|
||||
*
|
||||
* @ORM\Column(name="max_f_stop", type="float", precision=10, scale=0, nullable=true)
|
||||
*/
|
||||
private $maxFStop;
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*
|
||||
* @ORM\Column(name="min_focal_length", type="integer", nullable=true)
|
||||
*/
|
||||
private $minFocalLength;
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*
|
||||
* @ORM\Column(name="max_focal_length", type="integer", nullable=true)
|
||||
*/
|
||||
private $maxFocalLength;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="serial", type="string", length=10, nullable=true)
|
||||
*/
|
||||
private $serial;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="purchase_price", type="decimal", precision=10, scale=0, nullable=true)
|
||||
*/
|
||||
private $purchasePrice;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="notes", type="text", nullable=true)
|
||||
*/
|
||||
private $notes;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="mount", type="string", length=10, nullable=true)
|
||||
*/
|
||||
private $mount;
|
||||
|
||||
/**
|
||||
* @var boolean
|
||||
*
|
||||
* @ORM\Column(name="received", type="boolean", nullable=false)
|
||||
*/
|
||||
private $received = false;
|
||||
|
||||
/**
|
||||
* @var boolean
|
||||
*
|
||||
* @ORM\Column(name="formerly_owned", type="boolean", nullable=false)
|
||||
*/
|
||||
private $formerlyOwned = false;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="front_filter_size", type="decimal", precision=10, scale=0, nullable=true)
|
||||
*/
|
||||
private $frontFilterSize;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="rear_filter_size", type="decimal", precision=10, scale=0, nullable=true)
|
||||
*/
|
||||
private $rearFilterSize;
|
||||
|
||||
/**
|
||||
* @var boolean
|
||||
*
|
||||
* @ORM\Column(name="is_teleconverter", type="boolean", nullable=false)
|
||||
*/
|
||||
private $isTeleconverter = false;
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*
|
||||
* @ORM\Column(name="design_elements", type="smallint", nullable=true)
|
||||
*/
|
||||
private $designElements;
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*
|
||||
* @ORM\Column(name="design_groups", type="smallint", nullable=true)
|
||||
*/
|
||||
private $designGroups;
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*
|
||||
* @ORM\Column(name="aperture_blades", type="smallint", nullable=true)
|
||||
*/
|
||||
private $apertureBlades;
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user