Fix entity-class mapping

pull/5034/head
Angel Fernando Quiroz Campos 11 months ago
parent d5a975814c
commit cda50ef101
  1. 10
      src/CoreBundle/Entity/BranchSync.php
  2. 2
      src/CoreBundle/Entity/MailTemplate.php
  3. 12
      src/CoreBundle/Entity/SequenceCondition.php
  4. 6
      src/CoreBundle/Entity/SequenceMethod.php
  5. 18
      src/CoreBundle/Entity/SequenceValue.php
  6. 4
      src/CoreBundle/Entity/UserCareer.php
  7. 6
      src/CoreBundle/Entity/Usergroup.php

@ -43,10 +43,10 @@ class BranchSync
protected ?string $branchIp = null;
#[ORM\Column(name: 'latitude', type: 'decimal', nullable: true, unique: false)]
protected ?float $latitude = null;
protected ?string $latitude = null;
#[ORM\Column(name: 'longitude', type: 'decimal', nullable: true, unique: false)]
protected ?float $longitude = null;
protected ?string $longitude = null;
#[ORM\Column(name: 'dwn_speed', type: 'integer', nullable: true, unique: false)]
protected ?int $dwnSpeed = null;
@ -162,7 +162,7 @@ class BranchSync
return $this->branchIp;
}
public function setLatitude(float $latitude): self
public function setLatitude(?string $latitude): self
{
$this->latitude = $latitude;
@ -174,12 +174,12 @@ class BranchSync
*
* @return float
*/
public function getLatitude()
public function getLatitude(): ?string
{
return $this->latitude;
}
public function setLongitude(float $longitude): self
public function setLongitude(?string $longitude): self
{
$this->longitude = $longitude;

@ -39,5 +39,5 @@ class MailTemplate
protected bool $defaultTemplate;
#[ORM\Column(name: '`system`', type: 'integer', nullable: false, options: ['default' => 0])]
protected bool $system;
protected int $system;
}

@ -24,10 +24,10 @@ class SequenceCondition
protected string $mathOperation;
#[ORM\Column(name: 'param', type: 'float')]
protected string $param;
protected float $param;
#[ORM\Column(name: 'act_true', type: 'integer')]
protected string $actTrue;
protected int $actTrue;
#[ORM\Column(name: 'act_false', type: 'string')]
protected string $actFalse;
@ -75,12 +75,12 @@ class SequenceCondition
/**
* @return string
*/
public function getParam()
public function getParam(): float
{
return $this->param;
}
public function setParam(string $param): self
public function setParam(float $param): self
{
$this->param = $param;
@ -90,12 +90,12 @@ class SequenceCondition
/**
* @return string
*/
public function getActTrue()
public function getActTrue(): int
{
return $this->actTrue;
}
public function setActTrue(string $actTrue): self
public function setActTrue(int $actTrue): self
{
$this->actTrue = $actTrue;

@ -24,7 +24,7 @@ class SequenceMethod
protected string $formula;
#[ORM\Column(name: 'assign', type: 'integer')]
protected string $assign;
protected int $assign;
#[ORM\Column(name: 'met_type', type: 'string')]
protected string $metType;
@ -75,12 +75,12 @@ class SequenceMethod
/**
* @return string
*/
public function getAssign()
public function getAssign(): int
{
return $this->assign;
}
public function setAssign(string $assign): self
public function setAssign(int $assign): self
{
$this->assign = $assign;

@ -30,7 +30,7 @@ class SequenceValue
protected ?SequenceRowEntity $entity = null;
#[ORM\Column(name: 'advance', type: 'float')]
protected int $advance;
protected float $advance;
#[ORM\Column(name: 'complete_items', type: 'integer')]
protected int $completeItems;
@ -39,13 +39,13 @@ class SequenceValue
protected int $totalItems;
#[ORM\Column(name: 'success', type: 'boolean')]
protected int $success;
protected bool $success;
#[ORM\Column(name: 'success_date', type: 'datetime', nullable: true)]
protected ?DateTime $successDate = null;
#[ORM\Column(name: 'available', type: 'boolean')]
protected int $available;
protected bool $available;
#[ORM\Column(name: 'available_start_date', type: 'datetime', nullable: true)]
protected ?DateTime $availableStartDate = null;
@ -78,7 +78,7 @@ class SequenceValue
/**
* @return int
*/
public function getAdvance()
public function getAdvance(): float
{
return $this->advance;
}
@ -86,7 +86,7 @@ class SequenceValue
/**
* @return SequenceValue
*/
public function setAdvance(int $advance)
public function setAdvance(float $advance): static
{
$this->advance = $advance;
@ -126,12 +126,12 @@ class SequenceValue
/**
* @return int
*/
public function getSuccess()
public function getSuccess(): bool
{
return $this->success;
}
public function setSuccess(int $success): self
public function setSuccess(bool $success): self
{
$this->success = $success;
@ -156,12 +156,12 @@ class SequenceValue
/**
* @return int
*/
public function getAvailable()
public function getAvailable(): bool
{
return $this->available;
}
public function setAvailable(int $available): self
public function setAvailable(bool $available): self
{
$this->available = $available;

@ -21,10 +21,10 @@ class UserCareer
protected ?int $id = null;
#[ORM\Column(name: 'user_id', type: 'integer', nullable: false)]
protected User $user;
protected int $user;
#[ORM\Column(name: 'career_id', type: 'integer', nullable: false)]
protected Career $career;
protected int $career;
#[ORM\Column(name: 'extra_data', type: 'text', nullable: true)]
protected string $extraData;

@ -47,7 +47,7 @@ class Usergroup extends AbstractResource implements ResourceInterface, ResourceI
#[ORM\Column(name: 'visibility', type: 'string', length: 255, nullable: false)]
protected string $visibility;
#[ORM\Column(name: 'author_id', type: 'integer', nullable: true)]
protected ?string $authorId = null;
protected ?int $authorId = null;
#[Assert\NotBlank]
#[ORM\Column(name: 'allow_members_leave_group', type: 'integer')]
protected int $allowMembersToLeaveGroup;
@ -205,11 +205,11 @@ class Usergroup extends AbstractResource implements ResourceInterface, ResourceI
return $this;
}
public function getAuthorId(): string
public function getAuthorId(): ?int
{
return $this->authorId;
}
public function setAuthorId(string $authorId): self
public function setAuthorId(?int $authorId): self
{
$this->authorId = $authorId;

Loading…
Cancel
Save