Beispiel #1
0
 public function getById(M11StatusBO $obj)
 {
     $stmt = $this->db->prepare(self::$selectByIdSQL);
     $id = intval($obj->getM11statusid());
     $stmt->execute(array($id));
     $row = $stmt->fetch(PDO::FETCH_ASSOC);
     if ($row != null) {
         $obj = new M11StatusBO();
         $obj->setM11statusid($row['M11STATUSID']);
         $obj->setCode($row['CODE']);
         $obj->setLabel($row['LABEL']);
         $obj->setCreatedon($row['CREATEDON']);
         $obj->setCreateby($row['CREATEBY']);
         $obj->setModifiedon($row['MODIFIEDON']);
         $obj->setModifiedby($row['MODIFIEDBY']);
     }
     return $obj;
 }