forked from wallabag/wallabag
As per Doctrine said in the debug tool bar: - The field Wallabag\ApiBundle\Entity\Client#refreshTokens is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity Wallabag\ApiBundle\Entity\RefreshToken#client does not contain the required 'inversedBy="refreshTokens"' attribute. - The field Wallabag\ApiBundle\Entity\Client#accessTokens is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity Wallabag\ApiBundle\Entity\AccessToken#client does not contain the required 'inversedBy="accessTokens"' attribute.
32 lines
645 B
PHP
32 lines
645 B
PHP
<?php
|
|
|
|
namespace Wallabag\ApiBundle\Entity;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
use FOS\OAuthServerBundle\Entity\RefreshToken as BaseRefreshToken;
|
|
|
|
/**
|
|
* @ORM\Table("oauth2_refresh_tokens")
|
|
* @ORM\Entity
|
|
*/
|
|
class RefreshToken extends BaseRefreshToken
|
|
{
|
|
/**
|
|
* @ORM\Id
|
|
* @ORM\Column(type="integer")
|
|
* @ORM\GeneratedValue(strategy="AUTO")
|
|
*/
|
|
protected $id;
|
|
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity="Client", inversedBy="refreshTokens")
|
|
* @ORM\JoinColumn(nullable=false)
|
|
*/
|
|
protected $client;
|
|
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity="Wallabag\UserBundle\Entity\User")
|
|
*/
|
|
protected $user;
|
|
}
|