From: Raphaƫl Gertz Date: Tue, 23 Feb 2021 23:33:49 +0000 (+0100) Subject: Add snippet X-Git-Tag: 0.2.1~47 X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/5351029de2101de0f195cccfd3f17770a0eef47a Add snippet Remove donation and site fields Add snippet --- 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); }