PHP code example of meloflavio / notificacao-bundle
1. Go to this page and download the library: Download meloflavio/notificacao-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
meloflavio / notificacao-bundle example snippets
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use MeloFlavio\NotificacaoBundle\Entity\NotificacaoBase;
/**
* Class Base
* @ORM\MappedSuperclass()
*/
abstract class Notificacao extends NotificacaoBase
{
/**
* @ORM\Column(type="string", length=1500, nullable=true)
*/
private $texto;
/**
*
* @Gedmo\Blameable(on="create")
* @ORM\ManyToOne(targetEntity="Sonata\UserBundle\Model\UserInterface")
* @ORM\JoinColumn(name="created_by", referencedColumnName="id")
*/
protected $createdBy;
...
}