forked from wallabag/wallabag
Migrate to Doctrine attributes
This commit is contained in:
@ -9,10 +9,8 @@ use Doctrine\ORM\Mapping as ORM;
|
||||
*/
|
||||
trait EntityTimestampsTrait
|
||||
{
|
||||
/**
|
||||
* @ORM\PrePersist
|
||||
* @ORM\PreUpdate
|
||||
*/
|
||||
#[ORM\PrePersist]
|
||||
#[ORM\PreUpdate]
|
||||
public function timestamps()
|
||||
{
|
||||
if (null === $this->createdAt) {
|
||||
|
||||
Reference in New Issue
Block a user