Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Exists or 0 #11

Closed
arabiancoder opened this issue Dec 31, 2019 · 2 comments
Closed

Exists or 0 #11

arabiancoder opened this issue Dec 31, 2019 · 2 comments

Comments

@arabiancoder
Copy link

arabiancoder commented Dec 31, 2019

In selections, ID should be exists or 0 for roots!
For example in category, there is parent_id column, so, in root categories parent_id is 0.
I have been searching for such exists_or_zero validation method with no success.

@ghost
Copy link

ghost commented Dec 31, 2019

Just to confirm, are you asking for a new validation rule that does what you describe?

@ghost
Copy link

ghost commented Jan 2, 2020

Personally, I think this is too application-specific as it assumes that the ID field is an integer. It could easily be a string e.g. a UUID, or a number of a certain padded length e.g. 0000001.

For this reason, I think I'm going to close this. If you have any additional feedback, then please let me know and I'll reconsider your request :)

@ghost ghost closed this as completed Jan 2, 2020
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant