Closed gburu98-zz closed 7 years ago
What are you trying to accomplish?? neo4j ID property should never be removed.
@gburu98 Which version are you using? In general, you should be able to do so by setting in your model class the following properties:
protected $primaryKey = 'uuid';
protected $incrementing = false; // as of Laravel 5.2
@ctorresr , I am using a generator UUID's, but it gives me error tells me that UUIDs are not supported, the problem is the length of perhaps uuid
@KinaneD , I am using laravel 5.3.11, I try to apply what you told me, and see if it works
look @KinaneD, probe and printed me a "fatal error"
@gburu98 my bad, as the error says the incrementing
property should be public not protected. What, where and when says that uuid are not supported? The error doesn't say so.
Thanks to "public $ incrementing = false;" no longer he tells me uuid is not supported, but I have a new error:
Sure! But this is a different topic. The uuid value is a string, when in the query displayed in the error the ' '
are missing so it is being treated differently.
Clear my fundamental problem was that I could not enter uuid I can now, I have to resize the string? as is done with Neo4j that amendment?
The string size is not relevant. Try casting to string whatever you assign to $u->uuid
.
I am using a translator to read the English, it was unclear what the solution to the UUID is stored would be. that the last part is not stored?
Try to cast to string $uuid = (string) Uuid::generate();
.
Problem solved, thanks for your support @KinaneD !!
Good day, I have a question with Neo4j, as I can remove the ID property and replace UUID, can you help me? Thanks for your time!