function getAnswers() { $a = new QnA_Answer(); $a->question_id = $this->id; $cnt = $a->find(); if (!empty($cnt)) { return $a; } else { return null; } }