repositories
/
Project_proches_de_moi-server.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enable @Rest\View annotations.
[Project_proches_de_moi-server.git]
/
src
/
Controller
/
PersonController.php
diff --git
a/src/Controller/PersonController.php
b/src/Controller/PersonController.php
index 6ee3fdfc52ba561a8c42e872b1820e9abf35ed57..806d2124f970c745192e3396e0d2cdd971591735 100644
(file)
--- a/
src/Controller/PersonController.php
+++ b/
src/Controller/PersonController.php
@@
-36,7
+36,7
@@
class PersonController extends FOSRestController
public function removePersonAction(Request $request)
{
$em = $this->getDoctrine()->getManager();
public function removePersonAction(Request $request)
{
$em = $this->getDoctrine()->getManager();
- $person = $em->getRepository('App:
:
Person')->find($request->get('id'));
+ $person = $em->getRepository('App:Person')->find($request->get('id'));
if (!empty($person)) {
$em->remove($person);
if (!empty($person)) {
$em->remove($person);
@@
-55,7
+55,7
@@
class PersonController extends FOSRestController
public function updatePersonAction(Request $request)
{
$em = $this->getDoctrine()->getManager();
public function updatePersonAction(Request $request)
{
$em = $this->getDoctrine()->getManager();
- $person = $em->getRepository('App:
:
Person')->find($request->get('id'));
+ $person = $em->getRepository('App:Person')->find($request->get('id'));
if (empty($person)) {
return new JsonResponse(['message' => 'Person not found'], Response::HTTP_NOT_FOUND);
if (empty($person)) {
return new JsonResponse(['message' => 'Person not found'], Response::HTTP_NOT_FOUND);
@@
-128,7
+128,7
@@
class PersonController extends FOSRestController
public function showPersonByEmail(Request $request)
{
$em = $this->getDoctrine()->getManager();
public function showPersonByEmail(Request $request)
{
$em = $this->getDoctrine()->getManager();
- $person = $em->getRepository('App:
:
Person')->find($request->get('email'));
+ $person = $em->getRepository('App:Person')->find($request->get('email'));
if (empty($person)) {
return new JsonResponse(['message' => 'Person not found'], Response::HTTP_NOT_FOUND);
if (empty($person)) {
return new JsonResponse(['message' => 'Person not found'], Response::HTTP_NOT_FOUND);
@@
-168,7
+168,7
@@
class PersonController extends FOSRestController
public function showPersonFriendsByEmail(Request $request)
{
$em = $this->getDoctrine()->getManager();
public function showPersonFriendsByEmail(Request $request)
{
$em = $this->getDoctrine()->getManager();
- $person = $em->getRepository('App:
:
Person')->find($request->get('email'));
+ $person = $em->getRepository('App:Person')->find($request->get('email'));
if (empty($person)) {
return new JsonResponse(['message' => 'Person not found'], Response::HTTP_NOT_FOUND);
if (empty($person)) {
return new JsonResponse(['message' => 'Person not found'], Response::HTTP_NOT_FOUND);