public static function searchAll() { $query = "select * from Locks"; return Lock::query($query)->fetchAll(PDO::FETCH_CLASS, 'Lock'); }