Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[Help] Tree/Node Behavior with Auto Increment? #366
Is it posible to use auto-increment with the tree/node behavior?
If not, how can I have an ID before the persist call?
I get the following error:
Maybe the librarie should use PostUpdate to get the ID and finally generate the path.
Imposible to use this behavior for me, I have no ID before to persist my entities.
Do someone has any example of implementation of this behavior?
Ok, I had to add the folowing function in my entity:
It appears work fine, of course, I have to persist the parent before to persist the child.
I'm not sure this library should bother with autoincrement issues.
This way, you guarantee a more secure way of storing IDs and at the same time, you keep the control of IDs out of the DB process.