Merge pull request #384

This commit is contained in:
symfony-flex-server[bot]
2018-05-26 05:55:46 +00:00
committed by GitHub
3 changed files with 43 additions and 0 deletions
@@ -0,0 +1,6 @@
sonata_notification:
backend: sonata.notification.backend.doctrine
backends:
doctrine: ~
class:
message: App\Entity\SonataNotificationMessage
@@ -0,0 +1,6 @@
{
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/",
"src/": "%SRC_DIR%/"
}
}
@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation as Serializer;
use Sonata\NotificationBundle\Entity\BaseMessage;
/**
* @ORM\Entity
* @ORM\Table(name="notification__message")
*/
class SonataNotificationMessage extends BaseMessage
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
* // Serializer\Groups(groups={"sonata_api_read","sonata_api_write","sonata_search"})
*
* @var int
*/
protected $id;
public function getId()
{
return $this->id;
}
}