<?php
namespace AppBundle\Entity;
 

use FOS\UserBundle\Model\Group as BaseGroup;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name="fos_group")
 */
class UserGroup extends BaseGroup
{
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
     protected $id;
	 
	 public function __construct($roles = array())
    {
		$this->roles = $roles; 
		
    }
	public function __toString()
    {
		return $this->getName();
    }
}