コード例 #1
0
ファイル: Photo.php プロジェクト: janmarek/Neuron
 public function __construct(array $values = array())
 {
     parent::__construct($values);
     $this->comments = new \Neuron\Model\Comment\CommentGroup();
 }
コード例 #2
0
ファイル: Comment.php プロジェクト: janmarek/Neuron
 public function __construct(array $values = array())
 {
     parent::__construct($values);
     $this->created = new DateTime();
 }
コード例 #3
0
ファイル: Gallery.php プロジェクト: janmarek/Neuron
 public function __construct(array $values = array())
 {
     parent::__construct($values);
     $this->photos = new \Doctrine\Common\Collections\ArrayCollection();
 }
コード例 #4
0
ファイル: CommentGroup.php プロジェクト: janmarek/Neuron
 public function __construct(array $values = array())
 {
     parent::__construct($values);
     $this->comments = new ArrayCollection();
 }