This commit is contained in:
PaulCombal 2019-03-01 13:37:53 +01:00
parent f71e5cc158
commit 1c61cec992
2 changed files with 26 additions and 1 deletions

View File

@ -32,7 +32,7 @@ class Notification
private $description;
/**
* @ORM\ManyToOne(targetEntity="User")
* @ORM\ManyToOne(targetEntity="\App\Entity\User")
*/
private $user;

25
README.md Normal file
View File

@ -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.