Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Can't store values in a model with UUID in it #62

Closed
rohanshukla94 opened this issue Aug 29, 2018 · 4 comments
Closed

Can't store values in a model with UUID in it #62

rohanshukla94 opened this issue Aug 29, 2018 · 4 comments

Comments

@rohanshukla94
Copy link

rohanshukla94 commented Aug 29, 2018

So I set it up everything perfectly but when I create a 'store' function it says this

``SQLSTATE[HY000]: General error: 1364 Field 'id' doesn't have a default value (SQL: insert into users (`name`, `email`, `password`, `uuid`, `updated_at`, `created_at`) values\

Do i also need to specificy the uuid inside the add function? Doesn't it get generated automatically like 'id' use to?

@rohanshukla94 rohanshukla94 changed the title Can't create a model with UUID in it Can't store values in a model with UUID in it Aug 29, 2018
@rohanshukla94
Copy link
Author

It's done, I solved it! Thanks.

@brendt
Copy link
Contributor

brendt commented Sep 3, 2018

@NietzscheCoder could you share the problem and solution for future reference?

@rohanshukla94
Copy link
Author

Yes, wait ill do that

@rohanshukla94 rohanshukla94 reopened this Sep 3, 2018
@rohanshukla94
Copy link
Author

@brendt this wasn't an error from the package side, it was rather a mistake in the code i was using for Create function, other than that this error wouldn't come.

@brendt brendt closed this as completed Sep 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants