src/Application/Sonata/UserBundle/Entity/User.php line 26

Open in your IDE?
  1. <?php
  2. namespace App\Application\Sonata\UserBundle\Entity;
  3. use Sonata\UserBundle\Entity\BaseUser as BaseUser;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. /**
  7.  * This file has been generated by the SonataEasyExtendsBundle.
  8.  *
  9.  * @link https://sonata-project.org/easy-extends
  10.  *
  11.  * References:
  12.  * @link http://www.doctrine-project.org/projects/orm/2.0/docs/reference/working-with-objects/en
  13.  */
  14. /**
  15. * User class extends the Sonata\UserBundle\Entity\BaseUser class
  16. *
  17. * @ORM\Table(name="app_users")
  18. * @ORM\Entity
  19. */
  20. class User extends BaseUser
  21. {
  22.     protected $id;
  23.     
  24.     /**
  25.      * @ORM\ManyToMany(targetEntity="App\Entity\Sites", mappedBy="user")
  26.      */
  27.     private $sites;
  28.     /**
  29.      * Get id.
  30.      *
  31.      * @return int $id
  32.      */
  33.     public function getId()
  34.     {
  35.         return $this->id;
  36.     }
  37. }