/** * Create a new Comment, persist it * * @param Comment $comment */ public function create(Comment $comment) { $comment->setCreatedDate(new DateTime()); $this->em->persist($comment); }