Eloquent Relation Bug #51135
-
Laravel Version11 PHP Version8.2 Database Driver & Versionsqlsrv Descriptionthe localID is 202416-0936 which is string but from some reason the eloquent removing the -0936 and turned into INT This is IntLotNoModel SQL server error also, this works fine inside the controller EFAI001::where('intlot', $intlot)->get(); Steps To Reproduceyou must have 2 models but the unique key is like this 202416-0936 and it should be VARCHAR (50) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Did you define protected $keyType = 'string' in your model? |
Beta Was this translation helpful? Give feedback.
Did you define protected $keyType = 'string' in your model?