public function save($con = null) { $communityEventComment = parent::save($con); $communityEvent = $communityEventComment->getCommunityEvent(); $communityEvent->setUpdatedAt($communityEventComment->getCreatedAt()); $communityEvent->save(); }
public function save($con = null) { $communityEventComment = parent::save($con); $communityEvent = $communityEventComment->getCommunityEvent(); $communityEvent->setUpdatedAt($communityEventComment->getCreatedAt()); $communityEvent->save(); if ($this->isNew()) { opCommunityTopicToolkit::sendNotificationMail($communityEvent->getCommunity(), $communityEvent->getId(), 'event', $communityEventComment->getMember()->getName(), $communityEvent->getName(), $communityEventComment->getBody()); } return $communityEventComment; }