for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Scrumban\Entity;
use Doctrine\ORM\Mapping as ORM;
use Scrumban\Model\UserStory as UserStoryModel;
/**
* @ORM\Entity()
* @ORM\Table(name="scrumban__user_stories")
* @ORM\HasLifecycleCallbacks
*/
class UserStory extends UserStoryModel
{
* @ORM\Id
* @ORM\Column(type="string", length=30)
protected $id;
* @ORM\Column(type="string", length=255)
protected $title;
* @ORM\Column(type="text")
protected $description;
* @ORM\Column(type="integer")
protected $value;
protected $status;
* @ORM\Column(type="float")
protected $estimatedTime;
protected $spentTime;
* @ORM\ManyToOne(targetEntity="Sprint")
protected $sprint;
* @ORM\ManyToOne(targetEntity="Epic")
protected $epic;
* @ORM\Column(type="datetime")
protected $createdAt;
protected $updatedAt;
* @ORM\PrePersist()
public function prePersist()
$this->createdAt = $this->updatedAt = new \DateTime();
}
* @ORM\PreUpdate()
public function preUpdate()
$this->updatedAt = new \DateTime();