Files
symfony-flex-recipes-contrib/sonata-project/notification-orm-pack/1.0/src/Entity/SonataNotificationMessage.php
T

32 lines
618 B
PHP

<?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;
}
}