Beispiel #1
0
 public function __construct()
 {
     parent::__construct();
     $this->categories = new ArrayCollection();
 }
 public function prePersist(BlogItem $blogItem)
 {
     $blogItem->setCreated(new \DateTime());
 }