Example #1
0
 public function getFullById($id)
 {
     $db = \Qh\Db_lo::instance();
     $getSteps = Step::findByExID($id);
     $arr = [':id' => $id];
     $sql = 'SELECT * FROM ' . static::TABLE . ' WHERE id = :id';
     try {
         $send2base = $db->queryObj($sql, static::class, $arr);
         if ([] !== $send2base) {
             $send2base[0]->ex_steps = $getSteps;
             return $send2base[0];
         } else {
             return false;
         }
     } catch (\PDOException $exception) {
         throw new \App\Exceptions\Db($exception->getMessage());
     }
 }