X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2FEntity%2FPerson.php;h=d401cc32432f16311220f818c8a775440b4729dc;hb=4c4feb3e3193703f6cfa44ca711092a8acb38329;hp=701b9e63cc6a550591be4a919a690e2b3193eb2a;hpb=dec6d0310680edbf06e4564590d6e4a3ffde8a6e;p=Project_proches_de_moi-server.git diff --git a/src/Entity/Person.php b/src/Entity/Person.php index 701b9e6..d401cc3 100644 --- a/src/Entity/Person.php +++ b/src/Entity/Person.php @@ -7,7 +7,7 @@ use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity() * @ORM\Table(name="Person", indexes={@ORM\Index(name="authentification_idx", columns={"email", "password"}), - * @ORM\Index(name="search_idx", columns={"firstname", "lastname"})}); + * @ORM\Index(name="search_idx", columns={"firstname", "lastname", "email"})}); */ class Person { @@ -154,7 +154,7 @@ class Person $this->friends_with_me->add($friendship); } - public function addFriend(User $friend) + public function addFriend(Person $friend) { $fs = new Friendship(); $fs->setPerson($this);