3 namespace Wallabag\CoreBundle\Entity
;
5 use Doctrine\ORM\Mapping
as ORM
;
10 * This entity stores a datetime for each event (updated or tagged) done on an entry.
12 * @ORM\Entity(repositoryClass="Wallabag\CoreBundle\Repository\ChangeRepository")
13 * @ORM\Table(name="`change`")
17 const MODIFIED_TYPE
= 1;
18 const CHANGED_TAG_TYPE
= 2;
23 * @ORM\Column(type="integer")
25 * @ORM\GeneratedValue(strategy="AUTO")
32 * @ORM\Column(type="integer")
37 * @ORM\ManyToOne(targetEntity="Wallabag\CoreBundle\Entity\Entry", inversedBy="changes")
44 * @ORM\Column(name="created_at", type="datetime")
48 public function __construct($type, Entry
$entry)
51 $this->entry
= $entry;
52 $this->createdAt
= new \
DateTime();
58 public function getId()
66 public function getType()
74 public function getCreatedAt()
76 return $this->createdAt
;
82 public function getEntry()