for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PiedWeb\CMSBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
trait TimestampableTrait
{
/**
* @var \DateTimeInterface
* @ORM\Column(type="datetime")
*/
protected $createdAt;
protected $updatedAt;
* Sets createdAt.
*
* @return $this
public function setCreatedAt(\DateTime $createdAt)
$this->createdAt = $createdAt;
return $this;
}
* Returns createdAt.
* @return \DateTime
public function getCreatedAt()
return $this->createdAt;
* Sets updatedAt.
public function setUpdatedAt(\DateTime $updatedAt)
$this->updatedAt = $updatedAt;
* Returns updatedAt.
public function getUpdatedAt()
return $this->updatedAt;