public function save(Tagd $tagd) { if ($tagd->isValid()) { $tagd->isNew() ? $this->add($tagd) : true; } else { throw new \RuntimeException('Le commentaire doit être validé pour être enregistré'); } }