示例#1
0
 public static function all()
 {
     $query = DB::connection()->prepare('SELECT * FROM hole');
     $query->execute();
     $rows = $query->fetchAll();
     return Hole::get_holes_from_rows($rows);
 }