From 1c61cec9925351ef3b235d8750827ccd030acf30 Mon Sep 17 00:00:00 2001 From: PaulCombal Date: Fri, 1 Mar 2019 13:37:53 +0100 Subject: [PATCH] auto --- NotificationsBundle/Entity/Notification.php | 2 +- README.md | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/NotificationsBundle/Entity/Notification.php b/NotificationsBundle/Entity/Notification.php index 5badeab..50edac1 100644 --- a/NotificationsBundle/Entity/Notification.php +++ b/NotificationsBundle/Entity/Notification.php @@ -32,7 +32,7 @@ class Notification private $description; /** - * @ORM\ManyToOne(targetEntity="User") + * @ORM\ManyToOne(targetEntity="\App\Entity\User") */ private $user; diff --git a/README.md b/README.md new file mode 100644 index 0000000..f8d234c --- /dev/null +++ b/README.md @@ -0,0 +1,25 @@ +Notifications bundle +=== + +Ajout de notifications pour les users (backend seulement) + +## Routes: + +Pour installer les routes, ajouter ceci: + +```yaml +notifications: + prefix: '/notifications' + resource: '@NotificationsBundle/Resources/config/routes.yaml' +``` + +à votre config/routes.yaml + +* **GET** /notifications/by-user/{id} + +A faire + +## Restrictions + +Votre classe User doit absoluement être dans le namespace \App\Entity et s'appeler User, soit etre +\App\Entity\User. \ No newline at end of file