Skip to content

Commit

Permalink
fix issue with collumn orm
Browse files Browse the repository at this point in the history
  • Loading branch information
felix Valerio committed Apr 3, 2024
1 parent 3449ab5 commit 7f29dfa
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 45 deletions.
38 changes: 19 additions & 19 deletions Entity/Email.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,102 +24,102 @@ class Email

/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*
*/
#[ORM\Column(name: 'id', type: 'integer')]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
private $id;

/**
* @var string
*
* @ORM\Column(name="filename", type="string", length=255)
*/
#[ORM\Column(name: 'filename', type: 'string', length: 255)]
private $filename;

/**
* @var string
*
* @ORM\Column(name="path", type="text")
*/
#[ORM\Column(name: 'path', type: 'text')]
private $path;

/**
* @var string
*
* @ORM\Column(name="message_from", type="string", length=255)
*/
#[ORM\Column(name: 'message_from', type: 'string', length: 255)]
private $messageFrom;

/**
* @var string
*
* @ORM\Column(name="message_to", type="string", length=255, nullable=true)
*/
#[ORM\Column(name: 'message_to', type: 'string', length: 255, nullable: true)]
private $messageTo;

/**
* @var string
*
* @ORM\Column(name="message_cc", type="string", length=255, nullable=true)
*/
#[ORM\Column(name: 'message_cc', type: 'string', length: 255, nullable: true)]
private $messageCc;

/**
* @var string
*
* @ORM\Column(name="message_bcc", type="string", length=255, nullable=true)
*/
#[ORM\Column(name: 'message_bcc', type: 'string', length: 255, nullable: true)]
private $messageBcc;

/**
* @var string
*
* @ORM\Column(name="message_subject", type="string", length=255)
*
*/
#[ORM\Column(name: 'message_subject', type: 'string', length: 255)]
private $messageSubject;

/**
* @var string
*
* @ORM\Column(name="message_body", type="text")
*/
#[ORM\Column(name: 'message_body', type: 'string')]
private $messageBody;

/**
* @var string
*
* @ORM\Column(name="retry_count", type="integer", nullable=true)
*/
#[ORM\Column(name: 'retry_count', type: 'integer', nullable: true)]
private $retryCount;

/**
* @var string
*
* @ORM\Column(name="status", type="string", length=255)
*/
#[ORM\Column(name: 'status', type: 'string', length: 255)]
private $status;

/**
* @var \DateTime
*
* @ORM\Column(name="created_on", type="datetime")
*/
#[ORM\Column(name: "created_on", type: "datetime")]
private $createdOn;

/**
* @var \DateTime
*
* @ORM\Column(name="last_check", type="datetime", nullable=true)
*/
#[ORM\Column(name: 'last_check', type: 'datetime', nullable: true)]
private $lastCheck;

/**
* @var array
*
* @ORM\Column(name="attachments", type="array", nullable=true);
*/
#[ORM\Column(name: 'attachments', type: 'array', nullable: true)]
private $attachments;


Expand Down Expand Up @@ -237,10 +237,10 @@ public function getMessageBody()

/**
* Set createdOn
* @ORM\PrePersist
*
* @return Email
*/
#[ORM\PrePersist]
public function setCreatedOn()
{
$this->createdOn = new \DateTime();
Expand Down
48 changes: 22 additions & 26 deletions Entity/Smtp.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,69 +17,65 @@ class Smtp {

/**
* @var integer
*
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*
*/
#[ORM\Column(name: 'id', type: 'integer')]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
protected $id;

/**
* @var string
*
* @ORM\Column(name="host", type="string", length=255)
*
* @Assert\NotBlank(message="The Host field is required.")
*
*/
#[ORM\Column(name: 'host', type: 'string', length: 255)]
#[Assert\NotBlank(message: "The Host field is required.")]
private $host;

/**
* @var string
*
* @ORM\Column(name="port", type="integer")
*
* @Assert\NotBlank(message="The Port field is required.")
*
*/
#[ORM\Column(name: 'port', type: 'integer')]
#[Assert\NotBlank(message: "The Port field is required.")]
private $port;

/**
* @var string
*
* @ORM\Column(name="encryption", type="string", length=255, nullable=true)
*
*
*/
#[ORM\Column(name: 'encryption', type: 'string', length: 255, nullable: true)]
private $encryption;

/**
* @var string
*
* @ORM\Column(name="user", type="string", length=255)
*
* @Assert\NotBlank(message="The Username field is required.")
*
*/
#[ORM\Column(name: 'user', type: 'string', length: 255)]
#[Assert\NotBlank(message: "The Username field is required.")]
private $user;

/**
* @var string
*
* @ORM\Column(name="password", type="string", length=255)
*
* @Assert\NotBlank(message="The Password field is required.")
*
*/
#[ORM\Column(name: 'password', type: 'string', length: 255)]
#[Assert\NotBlank(message: "The Password field is required.")]
private $password;

/**
* @var string
*
* @ORM\Column(name="unique_id", type="string", length=255, unique=true)
*
*/
#[ORM\Column(name: 'unique_id', type: 'string', length: 255, nullable: true)]
private $uniqueId;

/**
* @var string
*
* @ORM\Column(name="spool_dir", type="string", length=255)
*
*/
#[ORM\Column(name: 'spool_dir', type: 'string', length: 255)]
private $spoolDir;

/**
Expand Down

0 comments on commit 7f29dfa

Please sign in to comment.