Created
July 3, 2015 17:00
-
-
Save slaci/f49271638b77c30993b7 to your computer and use it in GitHub Desktop.
This file contains 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 | |
namespace AppBundle\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* @ORM\Entity | |
*/ | |
class EgEntity | |
{ | |
/** | |
* @ORM\Id | |
* @ORM\Column(name="id", type="integer") | |
* @ORM\GeneratedValue(strategy="AUTO") | |
*/ | |
private $id; | |
/** | |
* @ORM\Column(type="datetime") | |
*/ | |
private $meeting; | |
public function setId($id) | |
{ | |
$this->id = (int)$id; | |
} | |
public function setMeeting(\Datetime $dt) | |
{ | |
$this->meeting = $dt; | |
} | |
/** | |
* @return int | |
*/ | |
public function getId() | |
{ | |
return $this->id; | |
} | |
/** | |
* @return \DateTime | |
*/ | |
public function getMeeting() | |
{ | |
return $this->meeting; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment