*
* @XmlRoot("entry")
* @ORM\Entity(repositoryClass="Wallabag\CoreBundle\Repository\EntryRepository")
- * @ORM\Table(name="`entry`", options={"collate"="utf8mb4_unicode_ci", "charset"="utf8mb4"})
+ * @ORM\Table(
+ * name="`entry`",
+ * options={"collate"="utf8mb4_unicode_ci", "charset"="utf8mb4"},
+ * indexes={@ORM\Index(name="created_at", columns={"created_at"})}
+ * )
* @ORM\HasLifecycleCallbacks()
* @Hateoas\Relation("self", href = "expr('/api/entries/' ~ object.getId())")
*/
*/
private $isPublic;
+ /**
+ * @var string
+ *
+ * @ORM\Column(name="http_status", type="text", nullable=true)
+ *
+ * @Groups({"entries_for_user", "export_all"})
+ */
+ private $httpStatus;
+
/**
* @Exclude
*
{
$this->uuid = null;
}
+
+ /**
+ * @return int
+ */
+ public function getHttpStatus()
+ {
+ return $this->httpStatus;
+ }
+
+ /**
+ * @param int $httpStatus
+ *
+ * @return Entry
+ */
+ public function setHttpStatus($httpStatus)
+ {
+ $this->httpStatus = $httpStatus;
+
+ return $this;
+ }
}