src/Entity/MasterSync.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * MasterSync
  6.  * @ORM\Table(name="master_sync", indexes={@ORM\Index(name="licensex", columns={"ms_license"})})
  7.  * @ORM\Entity(repositoryClass="App\Repository\MasterSyncRepository")
  8.  * @ORM\HasLifecycleCallbacks
  9.  */
  10. class MasterSync {
  11.     const MASTER_SYNC_TYPE_DOWUP 1;
  12.     const MASTER_SYNC_TYPE_UPDOWN 2;
  13.     const MASTER_SYNC_TYPE_DB_UPDATE 3;
  14.     const MASTER_STATUS_INITIALIZATED 1;
  15.     const MASTER_STATUS_PROCESSED 3;
  16.     const MASTER_STATUS_RESPONDED 5;
  17.     const MASTER_STATUS_CLOSED 7;
  18.     const MASTER_SYNC_COMES_FROM_OLD_SYNC 0
  19.     const MASTER_SYNC_COMES_FROM_UNKNOWN 1
  20.     const MASTER_SYNC_COMES_FROM_LEVEL_WEB 2
  21.     const MASTER_SYNC_COMES_FROM_LICENSOR 3
  22.     const MASTER_SYNC_COMES_FROM_ANDROID 4
  23.     const MASTER_SYNC_COMES_FROM_LICENSOR_EXPORT 5
  24.     const MASTER_SYNC_COMES_FROM_OMTWS 6
  25.     /**
  26.      * @var integer
  27.      * @ORM\Column(name="ms_id", type="integer")
  28.      * @ORM\Id
  29.      * @ORM\GeneratedValue(strategy="IDENTITY")
  30.      */
  31.     private $id;
  32.     /**
  33.      * @var integer
  34.      * @ORM\Column(name="ms_type", type="integer", length=1, nullable=false)
  35.      */
  36.     private $msType;
  37.     /**
  38.      * @var integer
  39.      * @ORM\Column(name="ms_status", type="integer", length=1, nullable=false, options={"default":"1"})
  40.      */
  41.     private $msStatus;
  42.     /**
  43.      * @var \App\Entity\AccountLicense
  44.      * @ORM\ManyToOne(targetEntity="App\Entity\AccountLicense")
  45.      * @ORM\JoinColumns({
  46.      *   @ORM\JoinColumn(name="ms_license", referencedColumnName="al_id", onDelete="CASCADE")
  47.      * })
  48.      */
  49.     private $msLicense;
  50.     /**
  51.      * @var \App\Entity\ReadFilesData
  52.      * @ORM\ManyToOne(targetEntity="App\Entity\ReadFilesData")
  53.      * @ORM\JoinColumns({
  54.      *   @ORM\JoinColumn(name="ms_sync", referencedColumnName="rf_id", nullable=true, unique=true, onDelete="CASCADE")
  55.      * })
  56.      */
  57.     private $msSyncRecord;
  58.     /**
  59.      * @var \App\Entity\ReadFilesDataWeb
  60.      * @ORM\ManyToOne(targetEntity="App\Entity\ReadFilesDataWeb")
  61.      * @ORM\JoinColumns({
  62.      *   @ORM\JoinColumn(name="ms_web_sync", referencedColumnName="rfw_id", nullable=true, unique=true, onDelete="CASCADE")
  63.      * })
  64.      */
  65.     private $msSyncWebRecord;
  66.     /**
  67.      * @var \App\Entity\PushSent
  68.      * @ORM\ManyToOne(targetEntity="App\Entity\PushSent", cascade={"persist"})
  69.      * @ORM\JoinColumns({
  70.      *   @ORM\JoinColumn(name="ms_push", referencedColumnName="ps_id", nullable=true, onDelete="CASCADE")
  71.      * })
  72.      */
  73.     private $msPushRecord;
  74.     /**
  75.      * @var string
  76.      * @ORM\Column(name="ms_has_error", type="boolean", nullable=true, options={"default":"0"})
  77.      */
  78.     private $msHasPersistentError false;
  79.     /**
  80.      * @var string
  81.      * @ORM\Column(name="ms_block_db_update", type="boolean", nullable=true, options={"default":"0"})
  82.      */
  83.     private $msBlockDBUpdate false;
  84.     /**
  85.      * @var \DateTime
  86.      * @ORM\Column(name="ms_date_sync_ask", type="datetime", nullable=true)
  87.      */
  88.     private $msDateSyncAsk;
  89.     
  90.     /**
  91.      * @var integer
  92.      * @ORM\Column(name="ms_omt_status", type="integer", length=1, nullable=true, options={"default":"1"})
  93.      */
  94.     private $msOMTStatus;
  95.     /**
  96.      * @var string
  97.      * @ORM\Column(name="ms_omt_has_error", type="boolean", nullable=true, options={"default":"0"})
  98.      */
  99.     private $msOMTHasPersistentError false;
  100.     /**
  101.      * @@type 0 = sincronizaciones viejas que no se conoce el lugar de donde proviene
  102.      * @@type 1 = sincronizaciones donde se desconoce de donde proviene
  103.      * @@type 2 = sincronizaciones desde levelweb
  104.      * @@type 3 = sincronizaciones desde licensor
  105.      * @@type 4 = sincronizaciones desde level android
  106.      * @@type 5 = sincronizaciones desde licensor de tipo exportacion de licencia
  107.      * @ORM\Column(name="ms_where_it_comes", type="integer", nullable=false, options={"default":"0"})
  108.      */
  109.     private $msWhereItComes 0;
  110.     /**
  111.      * @var \App\Entity\FileSyncData
  112.      * @ORM\ManyToOne(targetEntity="App\Entity\FileSyncData")
  113.      * @ORM\JoinColumns({
  114.      *   @ORM\JoinColumn(name="ms_massive_sync", referencedColumnName="fsd_id", nullable=true, unique=true, onDelete="CASCADE")
  115.      * })
  116.      */
  117.     private $massiveSyncRecord;
  118.     /**
  119.      * @return type
  120.      */
  121.     public function getId() {
  122.         return $this->id;
  123.     }
  124.     /**
  125.      * @return type
  126.      */
  127.     public function getMsType() {
  128.         return $this->msType;
  129.     }
  130.     /**
  131.      * @return type
  132.      */
  133.     public function getMsStatus() {
  134.         return $this->msStatus;
  135.     }
  136.     /**
  137.      * @return type
  138.      */
  139.     public function getMsLicense() {
  140.         return $this->msLicense;
  141.     }
  142.     /**
  143.      * @return type
  144.      */
  145.     public function getMsSyncRecord() {
  146.         return $this->msSyncRecord;
  147.     }
  148.     /**
  149.      * @return type
  150.      */
  151.     public function getMsSyncWebRecord() {
  152.         return $this->msSyncWebRecord;
  153.     }
  154.     /**
  155.      * @return type
  156.      */
  157.     public function getMsPushRecord() {
  158.         return $this->msPushRecord;
  159.     }
  160.     /**
  161.      * @return type
  162.      */
  163.     public function getMsHasPersistentError() {
  164.         return $this->msHasPersistentError;
  165.     }
  166.     /**
  167.      * @param type $msType
  168.      */
  169.     public function setMsType($msType) {
  170.         $this->msType $msType;
  171.     }
  172.     /**
  173.      * @param type $msStatus
  174.      */
  175.     public function setMsStatus($msStatus) {
  176.         $this->msStatus $msStatus;
  177.     }
  178.     /**
  179.      * @param \App\Entity\AccountLicense $msLicense
  180.      */
  181.     public function setMsLicense(\App\Entity\AccountLicense $msLicense) {
  182.         $this->msLicense $msLicense;
  183.     }
  184.     /**
  185.      * @param \App\Entity\ReadFilesData $msSyncRecord
  186.      */
  187.     public function setMsSyncRecord(?\App\Entity\ReadFilesData $msSyncRecord) {
  188.         $this->msSyncRecord $msSyncRecord;
  189.     }
  190.     /**
  191.      * @param \App\Entity\ReadFilesDataWeb $msSyncWebRecord
  192.      */
  193.     public function setMsSyncWebRecord(?\App\Entity\ReadFilesDataWeb $msSyncWebRecord) {
  194.         $this->msSyncWebRecord $msSyncWebRecord;
  195.     }
  196.     /**
  197.      * @param \App\Entity\PushSent $msPushRecord
  198.      */
  199.     public function setMsPushRecord(?\App\Entity\PushSent $msPushRecord) {
  200.         $this->msPushRecord $msPushRecord;
  201.     }
  202.     /**
  203.      * @param type $msHasPersistentError
  204.      */
  205.     public function setMsHasPersistentError($msHasPersistentError) {
  206.         $this->msHasPersistentError $msHasPersistentError;
  207.     }
  208.     /**
  209.      * @return type
  210.      */
  211.     public function getMsBlockDBUpdate() {
  212.         return $this->msBlockDBUpdate;
  213.     }
  214.     /**
  215.      * @param type $msBlockDBUpdate
  216.      */
  217.     public function setMsBlockDBUpdate($msBlockDBUpdate) {
  218.         $this->msBlockDBUpdate $msBlockDBUpdate;
  219.     }
  220.     /**
  221.      * @return type
  222.      */
  223.     public function getMsDateSyncAsk() {
  224.         return $this->msDateSyncAsk;
  225.     }
  226.     /**
  227.      * @param \DateTime $msDateSyncAsk
  228.      */
  229.     public function setMsDateSyncAsk(\DateTime $msDateSyncAsk) {
  230.         $this->msDateSyncAsk $msDateSyncAsk;
  231.     }
  232.     /**
  233.      * @return type
  234.      */
  235.     public function getMsOMTStatus() {
  236.         return $this->msOMTStatus;
  237.     }
  238.     /**
  239.      * @param type $msOMTStatus
  240.      */
  241.     public function setMsOMTStatus($msOMTStatus) {
  242.         $this->msOMTStatus $msOMTStatus;
  243.     }
  244.     
  245.     /**
  246.      * @return type
  247.      */
  248.     public function getMsOMTHasPersistentError() {
  249.         return $this->msOMTHasPersistentError;
  250.     }
  251.     /**
  252.      * @param type $msOMTHasPersistentError
  253.      */
  254.     public function setMsOMTHasPersistentError($msOMTHasPersistentError) {
  255.         $this->msOMTHasPersistentError $msOMTHasPersistentError;
  256.     }
  257.     /**
  258.      * Get the value of msWhereItComes
  259.      */ 
  260.     public function getMsWhereItComes(){
  261.         return $this->msWhereItComes;
  262.     }
  263.     /**
  264.      * Set the value of msWhereItComes
  265.      */ 
  266.     public function setMsWhereItComes($msWhereItComes){
  267.         $this->msWhereItComes $msWhereItComes;
  268.     }
  269.     /**
  270.      * Get })
  271.      *
  272.      * @return \App\Entity\FileSyncData
  273.      */ 
  274.     public function getMassiveSyncRecord() {
  275.         return $this->massiveSyncRecord;
  276.     }
  277.     /**
  278.      * Set })
  279.      *
  280.      * @param \App\Entity\FileSyncData  $massiveSyncRecord  })
  281.      *
  282.      * @return  self
  283.      */ 
  284.     public function setMassiveSyncRecord(?\App\Entity\FileSyncData $massiveSyncRecord) {
  285.         $this->massiveSyncRecord $massiveSyncRecord;
  286.         return $this;
  287.     }
  288. }