use Wallabag\ApiBundle\Entity\Client;
use Wallabag\CoreBundle\Entity\Config;
use Wallabag\CoreBundle\Entity\Entry;
+use Wallabag\FederationBundle\Entity\Account;
/**
* User.
*/
protected $default_client;
+ /**
+ * @ORM\OneToOne(targetEntity="Wallabag\FederationBundle\Entity\Account", mappedBy="user", cascade={"remove"})
+ */
+ protected $account;
+
+ /**
+ * User constructor.
+ */
public function __construct()
{
parent::__construct();
{
$this->notifications = $notifications;
}
+
+ /**
+ * @return Account
+ */
+ public function getAccount()
+ {
+ return $this->account;
+ }
+
+ /**
+ * @param mixed $account
+ * @return User
+ */
+ public function setAccount(Account $account)
+ {
+ $this->account = $account;
+ return $this;
+ }
}