Skip to content

Instantly share code, notes, and snippets.

@Kronos11
Created July 26, 2011 03:49
Show Gist options
  • Save Kronos11/1105923 to your computer and use it in GitHub Desktop.
Save Kronos11/1105923 to your computer and use it in GitHub Desktop.
Account Session
<?php
/**
* Represents an account session
*
* Copyright (c) 2011 Kyle Craviotto <kyle@anhstudios.com>
*/
namespace Anh\GalaxyManagerBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="account_session")
*/
class AccountSession
{
/**
* @ORM\Id
* @ORM\Column(type="bigint")
* @ORM\generatedValue(strategy="AUTO")
*/
protected $id;
/**
* Get id
*
* @return integer $id
*/
public function getId()
{
return $this->id;
}
/**
* @ORM\JoinColumn(name="account_id", referencedColumnName="id")
* @ORM\Column(type="int")
*
*/
protected $account_id
/**
* Get account_id
*
* @return integer $account_id
*/
public function getAccountId()
{
return $this->account_id;
}
/**
* @ORM\Column(type="string", length="100")
*/
protected $session_key
/**
* Get session key
*
* @return string $session_key
*/
public function getSessionKey()
{
return $this->session_key;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment