mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
Rector: apply rules for doctrine code quality
This commit is contained in:
@@ -45,7 +45,7 @@ class CustomField
|
||||
* @ORM\Column(name="id", type="integer")
|
||||
* @ORM\GeneratedValue(strategy="AUTO")
|
||||
*/
|
||||
private $id;
|
||||
private ?int $id = null;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
@@ -64,7 +64,7 @@ class CustomField
|
||||
*
|
||||
* @ORM\Column(type="float")
|
||||
*/
|
||||
private $ordering;
|
||||
private ?float $ordering = null;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="boolean")
|
||||
@@ -76,14 +76,14 @@ class CustomField
|
||||
*
|
||||
* @ORM\Column(type="string", length=255)
|
||||
*/
|
||||
private $slug;
|
||||
private ?string $slug = null;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(type="string", length=255)
|
||||
*/
|
||||
private $type;
|
||||
private ?string $type = null;
|
||||
|
||||
/**
|
||||
* Get customFieldGroup.
|
||||
|
@@ -42,7 +42,7 @@ class Option
|
||||
* @ORM\Column(name="id", type="integer")
|
||||
* @ORM\GeneratedValue(strategy="AUTO")
|
||||
*/
|
||||
private $id;
|
||||
private ?int $id = null;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string", length=50, name="internal_key")
|
||||
|
@@ -34,14 +34,14 @@ class CustomFieldsDefaultGroup
|
||||
*
|
||||
* sf4 check: option inversedBy="customFields" return inconsistent error mapping !!
|
||||
*/
|
||||
private $customFieldsGroup;
|
||||
private ?\Chill\CustomFieldsBundle\Entity\CustomFieldsGroup $customFieldsGroup = null;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(type="string", length=255)
|
||||
*/
|
||||
private $entity;
|
||||
private ?string $entity = null;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
@@ -50,7 +50,7 @@ class CustomFieldsDefaultGroup
|
||||
* @ORM\Column(name="id", type="integer")
|
||||
* @ORM\GeneratedValue(strategy="AUTO")
|
||||
*/
|
||||
private $id;
|
||||
private ?int $id = null;
|
||||
|
||||
/**
|
||||
* Get customFieldsGroup.
|
||||
|
@@ -46,7 +46,7 @@ class CustomFieldsGroup
|
||||
*
|
||||
* @ORM\Column(type="string", length=255)
|
||||
*/
|
||||
private $entity;
|
||||
private ?string $entity = null;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
@@ -55,7 +55,7 @@ class CustomFieldsGroup
|
||||
* @ORM\Column(name="id", type="integer")
|
||||
* @ORM\GeneratedValue(strategy="AUTO")
|
||||
*/
|
||||
private $id;
|
||||
private ?int $id = null;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
|
Reference in New Issue
Block a user