Skip to content

Instantly share code, notes, and snippets.

@slaci
Created July 3, 2015 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slaci/f49271638b77c30993b7 to your computer and use it in GitHub Desktop.
Save slaci/f49271638b77c30993b7 to your computer and use it in GitHub Desktop.
<?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