我在laravel 5.1中建立了一对一的关系但是当我运行它时我得到了这个错误:
SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: "02.09" (SQL: select * from "category" where "category"."category_pos" in (02.09, 02.08, 02.06, 01.08, 02.11, 01.06, 02.02, 01.02, 2, 1) and "category"."deleted_at" is null)
有没有办法将local_key
转换为字符串?例如。 02.09到"02.09"
?