Created
August 12, 2017 17:51
-
-
Save rogersguedes/f675eb494b08cd35b0ba4c6f5e7dbcd4 to your computer and use it in GitHub Desktop.
CodeIgniter 3 Session Doctrine 2 Entity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * @Entity | |
| * @Table(name="sessions", indexes={@index(name="sessions_timestamp", columns={"timestamp"})}) | |
| */ | |
| class Sessions | |
| { | |
| /** | |
| * @Id | |
| * @Column(name="id", type="string", length=40) | |
| * @var string | |
| */ | |
| private $id; | |
| /** | |
| * @Column(name="ip_address", type="string", length=45) | |
| * @var string | |
| */ | |
| private $ipAddress; | |
| /** | |
| * @Column(name="timestamp", type="integer", options={"default": 0, "unsigned": true}) | |
| * @var integer | |
| */ | |
| private $timestamp; | |
| /** | |
| * @Column(name="data", type="blob", length=65535, nullable=false) | |
| * @var string | |
| */ | |
| private $data; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment