3 namespace Wallabag\CoreBundle\Entity
;
5 use Wallabag\UserBundle\Entity\User
;
6 use Doctrine\ORM\Mapping
as ORM
;
18 * @ORM\Column(name="id", type="integer")
20 * @ORM\GeneratedValue(strategy="AUTO")
27 * @ORM\ManyToOne(targetEntity="Wallabag\UserBundle\Entity\User")
34 * @ORM\ManyToOne(targetEntity="Wallabag\UserBundle\Entity\User")
36 private $userDestination;
41 * @ORM\ManyToOne(targetEntity="Wallabag\CoreBundle\Entity\Entry")
48 * @ORM\Column(name="accepted", type="boolean")
55 public function __construct()
57 $this->accepted
= false;
63 public function getId()
71 public function getUserOrigin()
73 return $this->userOrigin
;
77 * @param User $userOrigin
80 public function setUserOrigin(User
$userOrigin)
82 $this->userOrigin
= $userOrigin;
89 public function getUserDestination()
91 return $this->userDestination
;
95 * @param User $userDestination
98 public function setUserDestination(User
$userDestination)
100 $this->userDestination
= $userDestination;
107 public function isAccepted()
109 return $this->accepted
;
113 * @param bool $accepted
116 public function setAccepted($accepted)
118 $this->accepted
= $accepted;
125 public function getEntry()
131 * @param Entry $entry
134 public function setEntry(Entry
$entry)
136 $this->entry
= $entry;