private $id;
/**
- * @var int
+ * @var string
*
* @ORM\Column(name="uuid", type="text", nullable=true)
*
}
/**
- * @return int
+ * @return string
*/
public function getUuid()
{
}
/**
- * @param int $uuid
+ * @param string $uuid
*
* @return Entry
*/
public function generateUuid()
{
- if (empty($this->uuid) || is_null($this->uuid)) {
+ if (null === $this->uuid) {
// @see http://blog.kevingomez.fr/til/2015/07/26/why-is-uniqid-slow/ for true parameter
$this->uuid = uniqid('', true);
}