Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability Cast Blocks UUID on 'entity_id' #626

Open
SMPEJake opened this issue Apr 14, 2023 · 2 comments
Open

Ability Cast Blocks UUID on 'entity_id' #626

SMPEJake opened this issue Apr 14, 2023 · 2 comments
Labels

Comments

@SMPEJake
Copy link

Hello! Thanks for the great library!

Just trying to make this work with models that use UUID's, i have updated the entity_id columns on the database tables to the UUID column but there appears to be an issue. There is currently a cast in the Ability Model for entity_id which casts it to int, this cast blocks the UUID's working properly.

Would there be any problems with removing the cast?

@JosephSilber
Copy link
Owner

Seems logical. You should be able to just change the casts in your custom models.

@lrljoe
Copy link

lrljoe commented Apr 15, 2023

I've been using this with uuid based entities (user, team(scope) and entity) for an age, great package.

It works perfectly well, however I did hit a snag with the clipboard with a particularly complex custom scope using an array of UUIDs, can't remember what I did to fix it (from vague memory it was field length), but if you experience an issue then please @ me and I'll try to give you a steer.

@JosephSilber appreciate you've gotten this far without a config file which I'm suitably impressed with. But what would your feelings be on a config option to enable uuids (so the command generates a uuid migration, and switches the model casts to uuid compliant). Not volunteering to do this immediately as I'll need to go back through what I've done and triple check it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants