From 5351029de2101de0f195cccfd3f17770a0eef47a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 24 Feb 2021 00:33:49 +0100 Subject: [PATCH] Add snippet Remove donation and site fields Add snippet --- Entity/User.php | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/Entity/User.php b/Entity/User.php index 3385a20..530ea4d 100644 --- a/Entity/User.php +++ b/Entity/User.php @@ -5,7 +5,8 @@ namespace Rapsys\AirBundle\Entity; use Rapsys\AirBundle\Entity\Application; use Rapsys\AirBundle\Entity\Group; -use Rapsys\AirBundle\Entity\Vote; +use Rapsys\AirBundle\Entity\Link; +use Rapsys\AirBundle\Entity\Snippet; use Rapsys\UserBundle\Entity\User as BaseUser; class User extends BaseUser { @@ -14,16 +15,6 @@ class User extends BaseUser { */ protected $phone; - /** - * @var string - */ - protected $donation; - - /** - * @var string - */ - protected $site; - /** * @var \Doctrine\Common\Collections\Collection */ @@ -224,7 +215,7 @@ class User extends BaseUser { * * @return User */ - public function addSnippet(\Rapsys\AirBundle\Entity\Snippet $snippet) { + public function addSnippet(Snippet $snippet) { $this->snippets[] = $snippet; return $this; @@ -235,7 +226,7 @@ class User extends BaseUser { * * @param \Rapsys\AirBundle\Entity\Snippet $snippet */ - public function removeSnippet(\Rapsys\AirBundle\Entity\Snippet $snippet) { + public function removeSnippet(Snippet $snippet) { $this->snippets->removeElement($snippet); } -- 2.41.1