Error when importing
related question: https://discord.com/channels/883083792112300104/1245632711922815066
i upload the csv and all the rows fail. not sure what im missing
csv:
5 Replies
didnt remember that
firstOrNew
does not store the model
so $contact->id
may be null
now i added the $contact->save()
after the firstOrNew
anyways this doesnt solve it since now i have to add the other columns, since they arent nullable (name, surname, company)
not sure if it's the appropiate way to achieve what im trying to achieve (im trying to link event & contact models by the pivot)yeah that may be a way, now i have it like this, which i guess is similar:
the thing i dont understand is this error
Numeric value out of range: 1264 Out of range value for column 'attempts' at row 1
but now seems it works
not sure if that error can happen again, seems related to the jobs modelYour update or create works too.
You have a column called attempts, which you are likely setting a bad default value.
well yeah the jobs table has an attempts field, havent modified the table
seems that the error related to the jobs model is not happening anymore as the resolveRecord function is fixed now