public function getById(M12QuestionBO $obj) { $stmt = $this->db->prepare(self::$selectByIdSQL); $id = intval($obj->getM12questionid()); $stmt->execute(array($id)); $row = $stmt->fetch(PDO::FETCH_ASSOC); if ($row != null) { $obj = new M12QuestionBO(); $obj->setM12questionid($row['M12QUESTIONID']); $obj->setDescription($row['DESCRIPTION']); $obj->setCreatedon($row['CREATEDON']); $obj->setCreatedby($row['CREATEDBY']); $obj->setModifiedon($row['MODIFIEDON']); $obj->setModifiedby($row['MODIFIEDBY']); $obj->setActive($row['ACTIVE']); $obj->setM11statusid($row['M11STATUSID']); } return $obj; }