etrepat/baum — pull request #101 by samwiggins (2014-08-05 15:52:03+00:00)
Title: isRoot will now check existing models original parent id

There was a problem when calling makeRoot() on a node that was already saved as root.

$node = new Category(['name' => 'Root 3']);
$node->save();
$node->makeRoot();

Was throwing an exception because of this. All other tests still passing.