GithubHelp home page GithubHelp logo

Comments (8)

abangrephol avatar abangrephol commented on July 22, 2024 2

mungkin karena limit integer yang hanya sampai 2,147,483,647
solusi yang saya temukan dengan menambah variable
public $incrementing = false;
pada model Village

from indonesia.

uyab avatar uyab commented on July 22, 2024 1

Fixed in v0.8

PS: Ok, saya tahu issue ini sudah berumur sekitar 1,5 tahun, tetapi itu justru menjadikan bug fixingnya lebih greget ^_^, cc @adhatama

from indonesia.

uyab avatar uyab commented on July 22, 2024 1

@adhatama Fokus ke angka cantik 2,147,483,647.

  • Itu merupakan batas maksimal tipe data int di PHP 32 bit.
  • int merupakan tipe data default untuk primary key di Eloquent.
  • Makanya ketika dicasting, ID village (yang notabene angkanya besar-besar) selalu mentok di 2,147,483,647. Kalau yang ID nya dibawah itu pasti tidak ada masalah.
  • Solusinya, cek commitan terakhir 😄

from indonesia.

adhatama avatar adhatama commented on July 22, 2024

Wah kok aneh ya. Aku ndak bisa ngereproduce issue itu.
Database yang digunakan antara yang query dengan yang di aplikasi udah sama kah?
Dan itu yang result di aplikasi kan dari console log ya? Pas di backend nya apakah hanya manggil Indonesia::findDistrict($districtId, ['villages']) atau ada olahan lain sebelum dilempar ke view nya?

from indonesia.

muhghazaliakbar avatar muhghazaliakbar commented on July 22, 2024

di backend kodenya sesuai dengan yang saya catat di atas, ndonesia::findDistrict($districtId, ['villages']) saya cuma ikuti dokumentasinya, untuk mencari kelurahan. kemudian saya result dari console.log.

tidak ada olahan lain sepertinya, ini kode saya:
screenshot_209

from indonesia.

muhghazaliakbar avatar muhghazaliakbar commented on July 22, 2024

makanya saya heran juga :/

from indonesia.

adhatama avatar adhatama commented on July 22, 2024

@uyab jadi masalahnya apa?

from indonesia.

uyab avatar uyab commented on July 22, 2024

Kenapa kita tidak bisa reproduce, karena laptop dan versi PHP sudah 64 bit.

from indonesia.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.