-
Notifications
You must be signed in to change notification settings - Fork 129
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
Issue 53: Allow to use treeAttribute as external key #68
base: master
Are you sure you want to change the base?
Conversation
6e86f13
to
5796682
Compare
5796682
to
17b9e62
Compare
*/ | ||
public function testMakeRootNewExceptionIsRaisedWhenMultiTreeIsCreatedWithExistingTreeAttribute() | ||
{ | ||
$node = new MultipleTree(['name' => 'Root 4', 'tree' => 1]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@creocoder Before merging, maybe you can explain why at this point there is no tree with tree Id 10 here. It is created in the previous test and the DB is not cleared as far as I can see. I'm still quite confused about the state of the DB for each test. I only came up with this solution by trial and error.
@creocoder Any news on this? |
@mikehaertl In general fix is much more complex than introduced in that PR. So i'll take this ticket myself. I'll explain why. There should be special "externalRoots" mode. And behavior should take that into account. For example |
Hmm, can you explain that a bit more? I don't think that such a mode is really neccessary. And why do you think that The only problem i can see is something like this:
The last call to |
@mikehaertl Seems you misunderstood original issue. External roots mean roots in different table. So no roots in NS table at all. Your PR is about allow use custom ids for roots, but roots is still exists inside NS table. This not solve original issue. |
Hmm. But won't you always need a root node to have a consistent tree in your node table? |
Fix for issue #53