public function save($con = null) { $communityTopicComment = parent::save($con); $communityTopic = $communityTopicComment->getCommunityTopic(); $communityTopic->setUpdatedAt($communityTopicComment->getCreatedAt()); $communityTopic->save(); }
public function save($con = null) { $communityTopicComment = parent::save($con); $communityTopic = $communityTopicComment->getCommunityTopic(); $communityTopic->setUpdatedAt($communityTopicComment->getCreatedAt()); $communityTopic->save(); if ($this->isNew()) { opCommunityTopicToolkit::sendNotificationMail($communityTopic->getCommunity(), $communityTopic->getId(), 'topic', $communityTopicComment->getMember()->getName(), $communityTopic->getName(), $communityTopicComment->getBody()); } return $communityTopicComment; }