From 5136cec81d9bd2c0070530f144e5717a83361f4d Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Fri, 14 Sep 2018 13:42:36 +0200 Subject: [PATCH] Optimized permission entity --- application/src/Entity/Permission.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/src/Entity/Permission.php b/application/src/Entity/Permission.php index ed47e54..d89f764 100644 --- a/application/src/Entity/Permission.php +++ b/application/src/Entity/Permission.php @@ -28,7 +28,7 @@ class Permission extends AbstractEntity implements PermissionInterface protected $reciever; /** - * @ORM\Column(type="boolean") + * @ORM\Column(type="boolean",name="`grant`") * * @var bool */ @@ -52,6 +52,7 @@ class Permission extends AbstractEntity implements PermissionInterface public function __construct() { + $this->reciever = RecieverType::NODE; $this->grant = true; } }