AuthCode.php 569 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace Base\OAuthServerBundle\Entity;
  3. use FOS\OAuthServerBundle\Entity\AuthCode as BaseAuthCode;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity
  7. */
  8. class AuthCode extends BaseAuthCode
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\Column(type="integer")
  13. * @ORM\GeneratedValue(strategy="AUTO")
  14. */
  15. protected $id;
  16. /**
  17. * @ORM\ManyToOne(targetEntity="OAuthClient")
  18. * @ORM\JoinColumn(nullable=false)
  19. */
  20. protected $client;
  21. /**
  22. * @ORM\ManyToOne(targetEntity="Base\UserBundle\Entity\User")
  23. */
  24. protected $user;
  25. }