Skip to content

Commit bfd98e2

Browse files
committed
fix: constructor of degree not accepting anything
1 parent ff348c7 commit bfd98e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Entity/Degree.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ class Degree
2828
#[ORM\Column(length: 255, unique: true)]
2929
private string $name;
3030

31-
#[Gedmo\Slug(fields: ['slug'], unique: true)]
31+
#[Gedmo\Slug(fields: ['name'], unique: true)]
3232
#[ORM\Column(length: 255, unique: true)]
3333
private string $slug;
3434

35-
public function __construct(string $name)
35+
public function __construct(string $name = '')
3636
{
3737
$this->name = $name;
3838
}

0 commit comments

Comments
 (0)