3 // src/Rapsys/AirBundle/Entity/User.php
4 namespace Rapsys\AirBundle\Entity
;
6 class User
extends \Rapsys\UserBundle\Entity\User
{
8 * @var \Doctrine\Common\Collections\Collection
13 * @var \Doctrine\Common\Collections\Collection
15 private $applications;
20 public function __construct() {
21 parent
::__construct();
27 * @param \Rapsys\AirBundle\Entity\Vote $vote
31 public function addVote(\Rapsys\AirBundle\Entity\Vote
$vote) {
32 $this->votes
[] = $vote;
40 * @param \Rapsys\AirBundle\Entity\Vote $vote
42 public function removeVote(\Rapsys\AirBundle\Entity\Vote
$vote) {
43 $this->votes
->removeElement($vote);
49 * @return \Doctrine\Common\Collections\Collection
51 public function getVotes() {
58 * @param \Rapsys\AirBundle\Entity\Application $application
62 public function addApplication(\Rapsys\AirBundle\Entity\Application
$application) {
63 $this->applications
[] = $application;
71 * @param \Rapsys\AirBundle\Entity\Application $application
73 public function removeApplication(\Rapsys\AirBundle\Entity\Application
$application) {
74 $this->applications
->removeElement($application);
80 * @return \Doctrine\Common\Collections\Collection
82 public function getApplications() {
83 return $this->applications
;