Last active
April 28, 2018 15:31
-
-
Save covex-nn/d34ec8f3a97f566e581979ecff041954 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment