public function getPostsIn($conversation) { $rows = $this->database->table('posts')->where('conversation_id', $conversation->id)->get(); return $rows; }