소스 검색

Add createdAt on the user again

Jordi Boggiano 14 년 전
부모
커밋
89a24dc9c8
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      src/Packagist/WebBundle/Entity/User.php

+ 6 - 0
src/Packagist/WebBundle/Entity/User.php

@@ -29,10 +29,16 @@ class User extends BaseUser
      */
     private $authors;
 
+    /**
+     * @ORM\Column(type="datetime")
+     */
+    private $createdAt;
+
     public function __construct()
     {
         $this->packages = new ArrayCollection();
         $this->authors = new ArrayCollection();
+        $this->createdAt = new \DateTime();
         parent::__construct();
     }