use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
+use Wallabag\CoreBundle\Helper\EntityTimestampsTrait;
use Wallabag\UserBundle\Entity\User;
/**
*/
class SiteCredential
{
+ use EntityTimestampsTrait;
+
/**
* @var int
*
{
return $this->user;
}
-
- /**
- * @ORM\PrePersist
- */
- public function timestamps()
- {
- if (null === $this->createdAt) {
- $this->createdAt = new \DateTime();
- }
- }
}