Skip to content

Commit 859bb49

Browse files
committed
Adapt entity to work nicely with sylius grids
1 parent aad1aec commit 859bb49

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Entity/EtlExecution.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
/**
99
* @ORM\Entity(repositoryClass=EtlExecutionRepository::class)
10-
*
1110
*/
1211
class EtlExecution
1312
{
@@ -98,7 +97,7 @@ class EtlExecution
9897
* @param string $name
9998
* @param string $definition
10099
*/
101-
public function __construct(string $name, string $definition, array $inputData, array $inputOptions)
100+
public function __construct(string $name = "", string $definition = "", array $inputData = [], array $inputOptions = [])
102101
{
103102
$this->name = $name;
104103
$this->definition = $definition;
@@ -120,9 +119,9 @@ public function getName(): ?string
120119
return $this->name;
121120
}
122121

123-
public function setName(string $name): self
122+
public function setName(?string $name): self
124123
{
125-
$this->name = $name;
124+
$this->name = $name ?? "";
126125

127126
return $this;
128127
}
@@ -278,9 +277,9 @@ public function getDefinition(): ?string
278277
return $this->definition;
279278
}
280279

281-
public function setDefinition(string $definition): self
280+
public function setDefinition(?string $definition): self
282281
{
283-
$this->definition = $definition;
282+
$this->definition = $definition ?? "";
284283

285284
return $this;
286285
}

0 commit comments

Comments
 (0)