<?php
namespace Boab\CmsBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Admin
*
* @ORM\Table(name="user_admin")
* @ORM\Entity(repositoryClass="Boab\CmsBundle\Repository\AdminRepository")
*/
class Admin extends User implements AdminInterface
{
const ROLE_DEFAULT = 'ROLE_USER';
const USER_TYPE = "Admin";
/**
* Get role
*
* @return array
*/
public function getRoles()
{
return array_unique(array_merge(parent::getRoles(), [self::ROLE_DEFAULT]));
}
}