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

Zero value parent_id instead of null values #17

Closed
amochohan opened this issue Apr 14, 2016 · 2 comments
Closed

Zero value parent_id instead of null values #17

amochohan opened this issue Apr 14, 2016 · 2 comments

Comments

@amochohan
Copy link

Currently, parent_ids must be null to work with this package. In my case, root level nodes have a value of 0, to denote a root level node.

I've taken a look at the code, and it'd be a matter of changing a few queries to add an additional where clause to account for zero values. Is this something that others may need?

@amochohan
Copy link
Author

I've implemented this here:

https://github.com/drawmyattention/baum/commits/dev-zeroparentids

@poing
Copy link
Collaborator

poing commented Dec 17, 2020

Under New Management

Focusing support for later Laravel versions.

Cleaning up and closing some of the really old issues. Things that might still be a problem will be transfered to a consolidated issue.


A PR was not associated to this issue.

@poing poing closed this as completed Dec 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants