4 use Doctrine\ORM\Mapping
as ORM
;
8 * @ORM\Table(name="Friendship");
14 * @ORM\ManyToOne(targetEntity="Person", inversedBy="friends", cascade={"all"})
20 * @ORM\ManyToOne(targetEntity="Person", inversedBy="friends_with_me", cascade={"all"})
25 * @ORM\Column(type="boolean", options={"default":false})
29 public function getPerson() {
33 public function setPerson($person) {
34 $this->person
= $person;
38 public function getFriend() {
42 public function setFriend($friend) {
43 $this->friend
= $friend;
47 public function getIsValid() {
48 return $this->is_valid
;
51 public function setIsValid($is_valid) {
52 $this->is_valid
= $is_valid;