Actually i'm creating apps with CakePHP 3. The problems is that the result in phpMyAdmin and in CakePHP is not the same. When i retrieve table in phpMyAdmin i got something like this.
+-----+---------------+--------------+
| id | cin | nom |
+-----+---------------+--------------+
| 17 | 123456789123 | TEST |
| 16 | 102234566778 | MPANAOTEST |
| 15 | 101256003054 | MIHARINTSOA |
| 14 | 101253458255 | RAMAMONJISOA |
| 1 | 102256003063 | RAJAONAH |
+-----+---------------+--------------+
And in my apps i got this
+-----+------------+--------------+
| id | cin | nom |
+-----+------------+--------------+
| 17 | 2147483647 | TEST |
| 15 | 2147483647 | MIHARINTSOA |
| 14 | 2147483647 | RAMAMONJISOA |
| 1 | 2147483647 | RAJAONAH |
+-----+------------+--------------+
My Controller looks like this
public function liste() {
$this->set('employes', $this->Employes->find('all'));
$this->set('_serialize', ['employes']);
}
If someone can explain or give a way to fix it. Thanks
Note: CIN row is unique.