irvangt's avatar

SQLSTATE[22018]: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Conversion failed when converting the nvarchar value 'XX12' to data type int.

I have this issue when i change the connection db to SQLSRV from MYSQL, seem it force to change tireid to int and think id is int because two of it is NVarchar i use eloquent to make relation between table so is like Model1:with(Model2)->get(); which they have relation between them i set it in every Model 1 and 2 with belongTo. any idea to fix this problems?

0 likes
0 replies

Please or to participate in this conversation.