Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace WbsGo\clientsBundle\Entity;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * Tickets
- *
- * @ORM\Table(name="vtiger_troubletickets")
- * @ORM\Entity(repositoryClass="WbsGo\clientsBundle\Entity\TicketsRepository")
- * @ORM\HasLifecycleCallbacks
- */
- class Tickets
- {
- /**
- * @var \WbsGo\clientsBundle\Entity\VtigerCrmentity
- *
- * @ORM\OneToOne(targetEntity="WbsGo\clientsBundle\Entity\VtigerCrmentity", cascade={"persist", "remove"})
- * @ORM\JoinColumns({
- * @ORM\JoinColumn(name="ticketid", referencedColumnName="crmid", unique=true)
- * })
- * @ORM\Id
- */
- private $ticketid;
- /**
- * @var string
- * @ORM\Column(name="ticket_no", type="string", length=100, nullable=false)
- */
- private $ticketNo;
- /**
- * @var string
- *
- * @ORM\Column(name="groupname", type="string", length=100, nullable=true)
- */
- private $groupName;
- /**
- * @var integer
- *
- * @ORM\Column(name="parent_id", type="integer", nullable=true)
- */
- private $parentId;
- /**
- * @var integer
- *
- * @ORM\Column(name="product_id", type="integer", nullable=true)
- */
- private $productId;
- /**
- * @var string
- *
- * @ORM\Column(name="priority", type="string", length=100, nullable=true)
- */
- private $priority;
- /**
- * @var string
- *
- * @ORM\Column(name="severity", type="string", length=100, nullable=true)
- */
- private $severity;
- /**
- * @var string
- *
- * @ORM\Column(name="status", type="string", length=100, nullable=true)
- */
- private $status;
- /**
- * @var string
- *
- * @ORM\Column(name="category", type="string", length=100, nullable=true)
- */
- private $category;
- /**
- * @var string
- *
- * @ORM\Column(name="title", type="string", length=255, nullable=true)
- */
- private $title;
- /**
- * @var text
- *
- * @ORM\Column(name="solution", type="text", nullable=true)
- */
- private $solution;
- /**
- * @var text
- *
- * @ORM\Column(name="update_log", type="text", nullable=true)
- */
- private $updateLog;
- /**
- * @var integer
- *
- * @ORM\Column(name="version_id", type="integer", nullable=true)
- */
- private $versionId;
- /**
- * @var string
- *
- * @ORM\Column(name="hours", type="string", length=255, nullable=true)
- */
- private $hours;
- /**
- * @var string
- *
- * @ORM\Column(name="days", type="string", length=255, nullable=true)
- */
- private $days;
- /**
- * @var integer
- *
- * @ORM\Column(name="from_portal", type="integer", nullable=true)
- */
- private $fromPortal;
- /**
- * Set ticketNo
- *
- * @param string $ticketNo
- * @return Tickets
- */
- public function setTicketNo($ticketNo)
- {
- $this->ticketNo = $ticketNo;
- return $this;
- }
- /**
- * Get ticketNo
- *
- * @return string
- */
- public function getTicketNo()
- {
- return $this->ticketNo;
- }
- /**
- * Set groupName
- *
- * @param string $groupName
- * @return Tickets
- */
- public function setGroupName($groupName)
- {
- $this->groupName = $groupName;
- return $this;
- }
- /**
- * Get groupName
- *
- * @return string
- */
- public function getGroupName()
- {
- return $this->groupName;
- }
- /**
- * Set parentId
- *
- * @param integer $parentId
- * @return Tickets
- */
- public function setParentId($parentId)
- {
- $this->parentId = $parentId;
- return $this;
- }
- /**
- * Get parentId
- *
- * @return integer
- */
- public function getParentId()
- {
- return $this->parentId;
- }
- /**
- * Set productId
- *
- * @param integer $productId
- * @return Tickets
- */
- public function setProductId($productId)
- {
- $this->productId = $productId;
- return $this;
- }
- /**
- * Get productId
- *
- * @return integer
- */
- public function getProductId()
- {
- return $this->productId;
- }
- /**
- * Set priority
- *
- * @param string $priority
- * @return Tickets
- */
- public function setPriority($priority)
- {
- $this->priority = $priority;
- return $this;
- }
- /**
- * Get priority
- *
- * @return string
- */
- public function getPriority()
- {
- return $this->priority;
- }
- /**
- * Set severity
- *
- * @param string $severity
- * @return Tickets
- */
- public function setSeverity($severity)
- {
- $this->severity = $severity;
- return $this;
- }
- /**
- * Get severity
- *
- * @return string
- */
- public function getSeverity()
- {
- return $this->severity;
- }
- /**
- * Set status
- *
- * @param string $status
- * @return Tickets
- */
- public function setStatus($status)
- {
- $this->status = $status;
- return $this;
- }
- /**
- * Get status
- *
- * @return string
- */
- public function getStatus()
- {
- return $this->status;
- }
- /**
- * Set category
- *
- * @param string $category
- * @return Tickets
- */
- public function setCategory($category)
- {
- $this->category = $category;
- return $this;
- }
- /**
- * Get category
- *
- * @return string
- */
- public function getCategory()
- {
- return $this->category;
- }
- /**
- * Set title
- *
- * @param string $title
- * @return Tickets
- */
- public function setTitle($title)
- {
- $this->title = $title;
- return $this;
- }
- /**
- * Get title
- *
- * @return string
- */
- public function getTitle()
- {
- return $this->title;
- }
- /**
- * Set solution
- *
- * @param string $solution
- * @return Tickets
- */
- public function setSolution($solution)
- {
- $this->solution = $solution;
- return $this;
- }
- /**
- * Get solution
- *
- * @return string
- */
- public function getSolution()
- {
- return $this->solution;
- }
- /**
- * Set updateLog
- *
- * @param string $updateLog
- * @return Tickets
- */
- public function setUpdateLog($updateLog)
- {
- $this->updateLog = $updateLog;
- return $this;
- }
- /**
- * Get updateLog
- *
- * @return string
- */
- public function getUpdateLog()
- {
- return $this->updateLog;
- }
- /**
- * Set versionId
- *
- * @param integer $versionId
- * @return Tickets
- */
- public function setVersionId($versionId)
- {
- $this->versionId = $versionId;
- return $this;
- }
- /**
- * Get versionId
- *
- * @return integer
- */
- public function getVersionId()
- {
- return $this->versionId;
- }
- /**
- * Set hours
- *
- * @param string $hours
- * @return Tickets
- */
- public function setHours($hours)
- {
- $this->hours = $hours;
- return $this;
- }
- /**
- * Get hours
- *
- * @return string
- */
- public function getHours()
- {
- return $this->hours;
- }
- /**
- * Set days
- *
- * @param string $days
- * @return Tickets
- */
- public function setDays($days)
- {
- $this->days = $days;
- return $this;
- }
- /**
- * Get days
- *
- * @return string
- */
- public function getDays()
- {
- return $this->days;
- }
- /**
- * Set fromPortal
- *
- * @param integer $fromPortal
- * @return Tickets
- */
- public function setFromPortal($fromPortal)
- {
- $this->fromPortal = $fromPortal;
- return $this;
- }
- /**
- * Get fromPortal
- *
- * @return integer
- */
- public function getFromPortal()
- {
- return $this->fromPortal;
- }
- /**
- * Set ticketid
- *
- * @param \WbsGo\clientsBundle\Entity\VtigerCrmentity $ticketid
- * @return Tickets
- */
- public function setTicketid(\WbsGo\clientsBundle\Entity\VtigerCrmentity $ticketid)
- {
- $this->ticketid = $ticketid;
- return $this;
- }
- /**
- * Get ticketid
- *
- * @return \WbsGo\clientsBundle\Entity\VtigerCrmentity
- */
- public function getTicketid()
- {
- return $this->ticketid;
- }
- }
- ?>
- <?php
- namespace WbsGo\clientsBundle\Entity;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * VtigerCrmentity
- *
- * @ORM\Table(name="vtiger_crmentity")
- * @ORM\Entity
- * @ORM\HasLifecycleCallbacks
- */
- class VtigerCrmentity
- {
- /**
- * @var integer
- *
- * @ORM\Column(name="smcreatorid", type="integer", nullable=false)
- */
- private $smcreatorid;
- /**
- * @var integer
- *
- * @ORM\Column(name="smownerid", type="integer", nullable=false)
- */
- private $smownerid;
- /**
- * @var integer
- *
- * @ORM\Column(name="modifiedby", type="integer", nullable=false)
- */
- private $modifiedby;
- /**
- * @var string
- *
- * @ORM\Column(name="setype", type="string", length=30, nullable=false)
- */
- private $setype;
- /**
- * @var string
- *
- * @ORM\Column(name="description", type="text", nullable=true)
- */
- private $description;
- /**
- * @var \DateTime
- *
- * @ORM\Column(name="createdtime", type="datetime", nullable=false)
- */
- private $createdtime;
- /**
- * @var \DateTime
- *
- * @ORM\Column(name="modifiedtime", type="datetime", nullable=false)
- */
- private $modifiedtime;
- /**
- * @var \DateTime
- *
- * @ORM\Column(name="viewedtime", type="datetime", nullable=true)
- */
- private $viewedtime;
- /**
- * @var string
- *
- * @ORM\Column(name="status", type="string", length=50, nullable=true)
- */
- private $status;
- /**
- * @var integer
- *
- * @ORM\Column(name="version", type="integer", nullable=false)
- */
- private $version;
- /**
- * @var integer
- *
- * @ORM\Column(name="presence", type="integer", nullable=true)
- */
- private $presence;
- /**
- * @var integer
- *
- * @ORM\Column(name="deleted", type="integer", nullable=false)
- */
- private $deleted;
- /**
- * @var integer
- *
- * @ORM\Column(name="crmid", type="integer")
- * @ORM\Id
- */
- private $crmid;
- /**
- * Set smcreatorid
- *
- * @param integer $smcreatorid
- * @return VtigerCrmentity
- */
- public function setSmcreatorid($smcreatorid)
- {
- $this->smcreatorid = $smcreatorid;
- return $this;
- }
- /**
- * Get smcreatorid
- *
- * @return integer
- */
- public function getSmcreatorid()
- {
- return $this->smcreatorid;
- }
- /**
- * Set smownerid
- *
- * @param integer $smownerid
- * @return VtigerCrmentity
- */
- public function setSmownerid($smownerid)
- {
- $this->smownerid = $smownerid;
- return $this;
- }
- /**
- * Get smownerid
- *
- * @return integer
- */
- public function getSmownerid()
- {
- return $this->smownerid;
- }
- /**
- * Set modifiedby
- *
- * @param integer $modifiedby
- * @return VtigerCrmentity
- */
- public function setModifiedby($modifiedby)
- {
- $this->modifiedby = $modifiedby;
- return $this;
- }
- /**
- * Get modifiedby
- *
- * @return integer
- */
- public function getModifiedby()
- {
- return $this->modifiedby;
- }
- /**
- * Set setype
- *
- * @ORM\PrePersist
- */
- public function setSetype()
- {
- $this->setype = 'HelpDesk';
- }
- /**
- * Get setype
- *
- * @return string
- */
- public function getSetype()
- {
- return $this->setype;
- }
- /**
- * Set description
- *
- * @param string $description
- * @return VtigerCrmentity
- */
- public function setDescription($description)
- {
- $this->description = $description;
- return $this;
- }
- /**
- * Get description
- *
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
- /**
- * @ORM\PrePersist
- */
- public function setCreatedtime($createdTime = null)
- {
- $this->createdtime = null === $createdTime ? new \DateTime() : $createdTime;
- return $this;
- }
- /**
- * Get createdtime
- *
- * @return \DateTime
- */
- public function getCreatedtime()
- {
- return $this->createdtime;
- }
- /**
- * Set modifiedtime
- *
- * @ORM\PrePersist
- * @ORM\PreUpdate()
- */
- public function setModifiedtime($modifiedTime = null)
- {
- $this->modifiedtime = null === $modifiedTime ? new \DateTime() : $modifiedTime;
- return $this;
- }
- /**
- * Get modifiedtime
- *
- * @return \DateTime
- */
- public function getModifiedtime()
- {
- return $this->modifiedtime;
- }
- /**
- * Set viewedtime
- *
- * @param \DateTime $viewedtime
- * @return VtigerCrmentity
- */
- public function setViewedtime($viewedtime)
- {
- $this->viewedtime = $viewedtime;
- return $this;
- }
- /**
- * Get viewedtime
- *
- * @return \DateTime
- */
- public function getViewedtime()
- {
- return $this->viewedtime;
- }
- /**
- * Set status
- *
- * @param string $status
- * @return VtigerCrmentity
- */
- public function setStatus($status)
- {
- $this->status = $status;
- return $this;
- }
- /**
- * Get status
- *
- * @return string
- */
- public function getStatus()
- {
- return $this->status;
- }
- /**
- * Set version
- *
- * @ORM\PrePersist()
- */
- public function setVersion($version = null)
- {
- $this->version = null === $version ? '0' : $version;
- return $this;
- }
- /**
- * Get version
- *
- * @return integer
- */
- public function getVersion()
- {
- return $this->version;
- }
- /**
- * Set presence
- *
- * @ORM\PrePersist()
- */
- public function setPresence($presence = null)
- {
- $this->presence = null === $presence ? '0' : $presence;
- return $this;
- }
- /**
- * Get presence
- *
- * @return integer
- */
- public function getPresence()
- {
- return $this->presence;
- }
- /**
- * Set deleted
- *
- * @ORM\PrePersist()
- */
- public function setDeleted($deleted = null)
- {
- $this->deleted = null === $deleted ? '0' : $deleted;
- return $this;
- }
- /**
- * Get deleted
- *
- * @return integer
- */
- public function getDeleted()
- {
- return $this->deleted;
- }
- /**
- * Get crmid
- *
- * @return integer
- */
- public function getCrmid()
- {
- return $this->crmid;
- }
- public function setCrmid($crmid)
- {
- $this->crmid = $crmid;
- }
- }
- ?>
- <?php
- namespace WbsGo\clientsBundle\Entity;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * VtigerTicketcf
- *
- * @ORM\Table(name="vtiger_ticketcf")
- * @ORM\Entity
- */
- class VtigerTicketcf
- {
- /**
- * @var string
- *
- * @ORM\Column(name="cf_546", type="string", length=255, nullable=true)
- */
- private $cf546;
- /**
- * @var string
- *
- * @ORM\Column(name="cf_556", type="string", length=255, nullable=true)
- */
- private $cf556;
- /**
- * @var string
- *
- * @ORM\Column(name="cf_589", type="string", length=3, nullable=true)
- */
- private $cf589;
- /**
- * @var string
- *
- * @ORM\Column(name="cf_590", type="string", length=3, nullable=true)
- */
- private $cf590;
- /**
- * @var string
- *
- * @ORM\Column(name="cf_592", type="string", length=100, nullable=true)
- */
- private $cf592;
- /**
- * @var string
- *
- * @ORM\Column(name="cf_593", type="string", length=255, nullable=true)
- */
- private $cf593;
- /**
- * @var string
- *
- * @ORM\Column(name="cf_594", type="string", length=255, nullable=true)
- */
- private $tipo;
- /**
- * @var string
- *
- * @ORM\Column(name="cf_675", type="string", length=50, nullable=true)
- */
- private $suscripcion;
- /**
- * @var float
- *
- * @ORM\Column(name="cf_689", type="decimal", nullable=true)
- */
- private $cf689;
- /**
- * @var float
- *
- * @ORM\Column(name="cf_690", type="decimal", nullable=true)
- */
- private $cf690;
- /**
- * @var float
- *
- * @ORM\Column(name="cf_691", type="decimal", nullable=true)
- */
- private $cf691;
- /**
- * @var float
- *
- * @ORM\Column(name="cf_693", type="decimal", nullable=true)
- */
- private $cf693;
- /**
- * @var string
- *
- * @ORM\Column(name="cf_746", type="string", length=50, nullable=true)
- */
- private $FNoti;
- /**
- * @var string
- *
- * @ORM\Column(name="cf_747", type="string", length=50, nullable=true)
- */
- private $FResp;
- /**
- * @var string
- *
- * @ORM\Column(name="cf_748", type="string", length=50, nullable=true)
- */
- private $FReso;
- /**
- * @var string
- *
- * @ORM\Column(name="cf_761", type="string", length=255, nullable=true)
- */
- private $hardware;
- /**
- * @var string
- *
- * @ORM\Column(name="cf_763", type="string", length=255, nullable=true)
- */
- private $recuperacion;
- /**
- * @var string
- *
- * @ORM\Column(name="cf_764", type="string", length=255, nullable=true)
- */
- private $web;
- /**
- * @var string
- *
- * @ORM\Column(name="cf_765", type="string", length=255, nullable=true)
- */
- private $backup;
- /**
- * @var string
- *
- * @ORM\Column(name="cf_770", type="string", length=50, nullable=true)
- */
- private $idProd;
- /**
- * @var \WbsGo\clientsBundle\Entity\Tickets
- *
- * @ORM\OneToOne(targetEntity="WbsGo\clientsBundle\Entity\Tickets", cascade={"persist", "remove"})
- * @ORM\JoinColumns({
- * @ORM\JoinColumn(name="ticketid", referencedColumnName="ticketid", unique=true)
- * })
- * @ORM\Id
- */
- private $id;
- /**
- * Set cf546
- *
- * @param string $cf546
- * @return VtigerTicketcf
- */
- public function setCf546($cf546)
- {
- $this->cf546 = $cf546;
- return $this;
- }
- /**
- * Get cf546
- *
- * @return string
- */
- public function getCf546()
- {
- return $this->cf546;
- }
- /**
- * Set cf556
- *
- * @param string $cf556
- * @return VtigerTicketcf
- */
- public function setCf556($cf556)
- {
- $this->cf556 = $cf556;
- return $this;
- }
- /**
- * Get cf556
- *
- * @return string
- */
- public function getCf556()
- {
- return $this->cf556;
- }
- /**
- * Set cf589
- *
- * @param string $cf589
- * @return VtigerTicketcf
- */
- public function setCf589($cf589)
- {
- $this->cf589 = $cf589;
- return $this;
- }
- /**
- * Get cf589
- *
- * @return string
- */
- public function getCf589()
- {
- return $this->cf589;
- }
- /**
- * Set cf590
- *
- * @param string $cf590
- * @return VtigerTicketcf
- */
- public function setCf590($cf590)
- {
- $this->cf590 = $cf590;
- return $this;
- }
- /**
- * Get cf590
- *
- * @return string
- */
- public function getCf590()
- {
- return $this->cf590;
- }
- /**
- * Set cf592
- *
- * @param string $cf592
- * @return VtigerTicketcf
- */
- public function setCf592($cf592)
- {
- $this->cf592 = $cf592;
- return $this;
- }
- /**
- * Get cf592
- *
- * @return string
- */
- public function getCf592()
- {
- return $this->cf592;
- }
- /**
- * Set cf593
- *
- * @param string $cf593
- * @return VtigerTicketcf
- */
- public function setCf593($cf593)
- {
- $this->cf593 = $cf593;
- return $this;
- }
- /**
- * Get cf593
- *
- * @return string
- */
- public function getCf593()
- {
- return $this->cf593;
- }
- /**
- * Set tipo
- *
- * @param string $tipo
- * @return VtigerTicketcf
- */
- public function setTipo($tipo)
- {
- $this->tipo = $tipo;
- return $this;
- }
- /**
- * Get tipo
- *
- * @return string
- */
- public function getTipo()
- {
- return $this->tipo;
- }
- /**
- * Set suscripcion
- *
- * @param string $suscripcion
- * @return VtigerTicketcf
- */
- public function setSuscripcion($suscripcion)
- {
- $this->suscripcion = $suscripcion;
- return $this;
- }
- /**
- * Get suscripcion
- *
- * @return string
- */
- public function getSuscripcion()
- {
- return $this->suscripcion;
- }
- /**
- * Set cf689
- *
- * @param float $cf689
- * @return VtigerTicketcf
- */
- public function setCf689($cf689)
- {
- $this->cf689 = $cf689;
- return $this;
- }
- /**
- * Get cf689
- *
- * @return float
- */
- public function getCf689()
- {
- return $this->cf689;
- }
- /**
- * Set cf690
- *
- * @param float $cf690
- * @return VtigerTicketcf
- */
- public function setCf690($cf690)
- {
- $this->cf690 = $cf690;
- return $this;
- }
- /**
- * Get cf690
- *
- * @return float
- */
- public function getCf690()
- {
- return $this->cf690;
- }
- /**
- * Set cf691
- *
- * @param float $cf691
- * @return VtigerTicketcf
- */
- public function setCf691($cf691)
- {
- $this->cf691 = $cf691;
- return $this;
- }
- /**
- * Get cf691
- *
- * @return float
- */
- public function getCf691()
- {
- return $this->cf691;
- }
- /**
- * Set cf693
- *
- * @param float $cf693
- * @return VtigerTicketcf
- */
- public function setCf693($cf693)
- {
- $this->cf693 = $cf693;
- return $this;
- }
- /**
- * Get cf693
- *
- * @return float
- */
- public function getCf693()
- {
- return $this->cf693;
- }
- /**
- * Set FNoti
- *
- * @param string $fNoti
- * @return VtigerTicketcf
- */
- public function setFNoti($fNoti)
- {
- $this->FNoti = $fNoti;
- return $this;
- }
- /**
- * Get FNoti
- *
- * @return string
- */
- public function getFNoti()
- {
- return $this->FNoti;
- }
- /**
- * Set FResp
- *
- * @param string $fResp
- * @return VtigerTicketcf
- */
- public function setFResp($fResp)
- {
- $this->FResp = $fResp;
- return $this;
- }
- /**
- * Get FResp
- *
- * @return string
- */
- public function getFResp()
- {
- return $this->FResp;
- }
- /**
- * Set FReso
- *
- * @param string $fReso
- * @return VtigerTicketcf
- */
- public function setFReso($fReso)
- {
- $this->FReso = $fReso;
- return $this;
- }
- /**
- * Get FReso
- *
- * @return string
- */
- public function getFReso()
- {
- return $this->FReso;
- }
- /**
- * Set hardware
- *
- * @param string $hardware
- * @return VtigerTicketcf
- */
- public function setHardware($hardware)
- {
- $this->hardware = $hardware;
- return $this;
- }
- /**
- * Get cf761
- *
- * @return string
- */
- public function getHardware()
- {
- return $this->hardware;
- }
- /**
- * Set recuperacion
- *
- * @param string $recuperacion
- * @return VtigerTicketcf
- */
- public function setRecuperacion($recuperacion)
- {
- $this->recuperacion = $recuperacion;
- return $this;
- }
- /**
- * Get recuperacion
- *
- * @return string
- */
- public function getRecuperacion()
- {
- return $this->recuperacion;
- }
- /**
- * Set web
- *
- * @param string $web
- * @return VtigerTicketcf
- */
- public function setWeb($web)
- {
- $this->web = $web;
- return $this;
- }
- /**
- * Get web
- *
- * @return string
- */
- public function getWeb()
- {
- return $this->web;
- }
- /**
- * Set backup
- *
- * @param string $backup
- * @return VtigerTicketcf
- */
- public function setBackup($backup)
- {
- $this->backup = $backup;
- return $this;
- }
- /**
- * Get backup
- *
- * @return string
- */
- public function getBackup()
- {
- return $this->backup;
- }
- /**
- * Set idProd
- *
- * @param string $idProd
- * @return VtigerTicketcf
- */
- public function setIdProd($idProd)
- {
- $this->idProd = $idProd;
- return $this;
- }
- /**
- * Get idProd
- *
- * @return string
- */
- public function getIdProd()
- {
- return $this->idProd;
- }
- /**
- * Set id
- *
- * @param \WbsGo\clientsBundle\Entity\Tickets $id
- * @return VtigerTicketcf
- */
- public function setId(\WbsGo\clientsBundle\Entity\Tickets $id)
- {
- $this->id = $id;
- return $this;
- }
- /**
- * Get id
- *
- * @return \WbsGo\clientsBundle\Entity\Tickets
- */
- public function getId()
- {
- return $this->id;
- }
- }
- ?>
- <?php
- namespace WbsGo\clientsBundle\Entity;
- use Doctrine\ORM\Mapping as ORM;
- use Symfony\Component\Config\Definition\IntegerNode;
- /**
- * VtigerTicketcomments
- *
- * @ORM\Table(name="vtiger_ticketcomments")
- * @ORM\Entity
- * @ORM\HasLifecycleCallbacks
- */
- class VtigerTicketcomments
- {
- /**
- * @var string
- *
- * @ORM\Column(name="comments", type="text", nullable=true)
- */
- private $comments;
- /**
- * @var integer
- *
- * @ORM\Column(name="ownerid", type="integer", nullable=false)
- */
- private $ownerid;
- /**
- * @var string
- *
- * @ORM\Column(name="ownertype", type="string", length=10, nullable=true)
- */
- private $ownertype;
- /**
- * @var \DateTime
- *
- * @ORM\Column(name="createdtime", type="datetime", nullable=false)
- */
- private $createdtime;
- /**
- * @var integer
- * @ORM\Column(name="commentid", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- private $id;
- /**
- * @var integer
- * @ORM\Column(name="ticketid", type="integer", nullable=false)
- */
- private $ticketid;
- /**
- * Set comments
- *
- * @param string $comments
- * @return VtigerTicketcomments
- */
- public function setComments($comments)
- {
- $this->comments = $comments;
- return $this;
- }
- /**
- * Get comments
- *
- * @return string
- */
- public function getComments()
- {
- return $this->comments;
- }
- /**
- * Set ownerid
- *
- * @param integer $ownerid
- * @return VtigerTicketcomments
- */
- public function setOwnerid($ownerid)
- {
- $this->ownerid = $ownerid;
- return $this;
- }
- /**
- * Get ownerid
- *
- * @return integer
- */
- public function getOwnerid()
- {
- return $this->ownerid;
- }
- /**
- * Set ownertype
- *
- * @param string $ownertype
- * @return VtigerTicketcomments
- */
- public function setOwnertype($ownertype)
- {
- $this->ownertype = $ownertype;
- return $this;
- }
- /**
- * Get ownertype
- *
- * @return string
- */
- public function getOwnertype()
- {
- return $this->ownertype;
- }
- /**
- * @ORM\PrePersist
- */
- public function setCreatedtime($createdTime = null)
- {
- $this->createdtime = null === $createdTime ? new \DateTime() : $createdTime;
- return $this;
- }
- /**
- * Get createdtime
- *
- * @return \DateTime
- */
- public function getCreatedtime()
- {
- return $this->createdtime;
- }
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set ticketid
- *
- * @param integer $ticketid
- * @return VtigerTicketcomments
- */
- public function setTicketid($ticketid)
- {
- $this->ticketid = $ticketid;
- return $this;
- }
- /**
- * Get ticketid
- *
- * @return integer
- */
- public function getTicketid()
- {
- return $this->ticketid;
- }
- }
- ?>
- <?php
- namespace WbsGo\clientsBundle\Form;
- use Symfony\Component\Form\AbstractType;
- use Symfony\Component\Form\FormBuilderInterface;
- use Symfony\Component\OptionsResolver\OptionsResolverInterface;
- use WbsGo\clientsBundle\Entity\VtigerTicketcf;
- use WbsGo\clientsBundle\Form\Type\TicketsType;
- class TicketcfType extends AbstractType
- {
- private $assetList;
- private $contactlist;
- public function __construct($_assetList,$_contactlist)
- {
- $this->assetList = $_assetList;
- $this->contactlist = $_contactlist;
- }
- public function buildForm(FormBuilderInterface $builder, array $options)
- {
- $builder
- ->add('suscripcion')
- ->add('idProd',
- 'choice',
- array(
- 'choices' => $this->assetList
- ))
- ->add('hardware', 'checkbox')
- ->add('recuperacion', 'checkbox')
- ->add('web', 'checkbox')
- ->add('backup', 'checkbox')
- ->add('id',
- new TicketsType($this->assetList, $this->contactlist))
- ;
- }
- public function setDefaultOptions(OptionsResolverInterface $resolver)
- {
- $resolver->setDefaults(array(
- 'data_class' => 'WbsGo\clientsBundle\Entity\VtigerTicketcf'
- ));
- }
- public function getName()
- {
- return 'tcf';
- }
- }
- ?>
- <?php
- namespace WbsGo\clientsBundle\Form\Type;
- use Symfony\Component\Form\AbstractType;
- use Symfony\Component\Form\FormBuilderInterface;
- use Symfony\Component\OptionsResolver\OptionsResolverInterface;
- use WbsGo\clientsBundle\Entity\Tickets;
- use WbsGo\clientsBundle\Form\Type\VtigerCrmentityType;
- class TicketsType extends AbstractType
- {
- private $assetList;
- private $contactlist;
- public function __construct($_assetList,$_contactlist)
- {
- $this->assetList = $_assetList;
- $this->contactlist = $_contactlist;
- }
- public function buildForm(FormBuilderInterface $builder, array $options)
- {
- $builder
- ->add('priority')
- ->add('title')
- ->add('ticketid',
- new VtigerCrmentityType())
- /*
- ->add('contacto',
- 'choice',
- array(
- 'choices' => $this->contactlist
- ))
- ->add('hardware', 'checkbox')
- ->add('backup', 'checkbox')
- ->add('web', 'checkbox')
- ->add('restore', 'checkbox')
- ->add('customerId')
- */
- ;
- }
- public function setDefaultOptions(OptionsResolverInterface $resolver)
- {
- $resolver->setDefaults(array(
- 'data_class' => 'WbsGo\clientsBundle\Entity\Tickets'
- ));
- }
- public function getName()
- {
- return 'ticket';
- }
- }
- ?>
- <?php
- namespace WbsGo\clientsBundle\Form\Type;
- use Symfony\Component\Form\AbstractType;
- use Symfony\Component\Form\FormBuilderInterface;
- use Symfony\Component\OptionsResolver\OptionsResolverInterface;
- use WbsGo\clientsBundle\Entity\VtigerCrmentity;
- class VtigerCrmentityType extends AbstractType {
- public function buildForm(FormBuilderInterface $builder, array $options) {
- $builder
- ->add('description', 'textarea',
- array('attr' => array('class' => 'tinymce')));
- }
- public function setDefaultOptions(OptionsResolverInterface $resolver) {
- $resolver
- ->setDefaults(
- array(
- 'data_class' => 'WbsGo\clientsBundle\Entity\VtigerCrmentity'));
- }
- public function getName() {
- return 'crm';
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement