auto
This commit is contained in:
parent
f71e5cc158
commit
1c61cec992
|
@ -32,7 +32,7 @@ class Notification
|
|||
private $description;
|
||||
|
||||
/**
|
||||
* @ORM\ManyToOne(targetEntity="User")
|
||||
* @ORM\ManyToOne(targetEntity="\App\Entity\User")
|
||||
*/
|
||||
private $user;
|
||||
|
||||
|
|
|
@ -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.
|
Loading…
Reference in New Issue