public function __construct(EntityManager $em) { parent::__construct($em, Comment::getClassName()); $this->commentDao = $em->getDao(Comment::getClassName()); }