/** * @param CommentModel $comment */ public function save(CommentModel $comment) { $this->db()->insert('comments')->values(array('key' => $comment->getKey(), 'text' => $comment->getText(), 'date_created' => $comment->getDateCreated(), 'user_id' => $comment->getUserId(), 'fk_id' => $comment->getFKId()))->execute(); }