for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace AppBundle\Entity;
use Gedmo\Mapping\Annotation as Gedmo;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="post")
*/
class Post
{
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
protected $id;
* @ORM\Column(type="string", length=100)
private $title;
* @ORM\Column(type="text")
private $intro;
private $content;
private $slug;
* @var datetime $created
*
* @Gedmo\Timestampable(on="create")
* @ORM\Column(type="datetime")
private $created;
* @var datetime $updated
* @Gedmo\Timestampable(on="update")
private $updated;
* Get id
* @return integer
public function getId()
return $this->id;
}
* Set title
* @param string $title
* @return Post
public function setTitle($title)
$this->title = $title;
return $this;
* Get title
* @return string
public function getTitle()
return $this->title;
* Set intro
* @param string $intro
public function setIntro($intro)
$this->intro = $intro;
* Get intro
public function getIntro()
return $this->intro;
* Set content
* @param string $content
public function setContent($content)
$this->content = $content;
* Get content
public function getContent()
return $this->content;
* Set slug
* @param string $slug
public function setSlug($slug)
$this->slug = $slug;
* Get slug
public function getSlug()
return $this->slug;
public function getCreated()
return $this->created;
public function getUpdated()
return $this->updated;