src/Entity/Group.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Sonata\UserBundle\Entity\BaseGroup;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity
  7.  * @ORM\Table(name="fos_group")
  8.  */
  9. class Group extends BaseGroup
  10. {
  11.     /**
  12.      * @var int
  13.      *
  14.      * @ORM\Column(name="id", type="bigint", nullable=false)
  15.      * @ORM\Id
  16.      * @ORM\GeneratedValue(strategy="AUTO")
  17.      */
  18.     protected $id;
  19.     /**
  20.      * @ORM\ManyToMany(targetEntity="App\Entity\PermissionGroup", mappedBy="groups", orphanRemoval=true)
  21.      */
  22.     private $permissions;
  23. }