<?phpnamespace App\Entity;use Sonata\UserBundle\Entity\BaseGroup;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity * @ORM\Table(name="fos_group") */class Group extends BaseGroup{ /** * @var int * * @ORM\Column(name="id", type="bigint", nullable=false) * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ protected $id; /** * @ORM\ManyToMany(targetEntity="App\Entity\PermissionGroup", mappedBy="groups", orphanRemoval=true) */ private $permissions;}