Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@EwanValentine
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EwanValentine/5ccf8049979b56a4f29c to your computer and use it in GitHub Desktop.
Save EwanValentine/5ccf8049979b56a4f29c to your computer and use it in GitHub Desktop.
<?php
namespace MyBundle\ApiBundle\Entity;
use FOS\OAuthServerBundle\Entity\AccessToken as BaseAccessToken;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
*/
class AccessToken extends BaseAccessToken
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\ManyToOne(targetEntity="Client")
* @ORM\JoinColumn(nullable=false)
*/
protected $client;
/**
* @ORM\ManyToOne(targetEntity="MyBundle\UserBundle\Entity\User")
*/
protected $user;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment