etrepat / baum

Baum is an implementation of the Nested Set pattern for Laravel's Eloquent ORM.
http://etrepat.com/baum
MIT License
2.24k stars 459 forks source link

Cannot access protected property Baum\SetMapper::$node #188

Open ddaattttaa opened 8 years ago

ddaattttaa commented 8 years ago

Hello,

i whish to use the "buildTree" method but i have this error Cannot access protected property Baum\SetMapper::$node

public function map($nodeList) {
    $self = $this;

    return $this->wrapInTransaction(function() use ($self, $nodeList) {
      forward_static_call(array(get_class($self->node), 'unguard'));

and when i change the status of the variable node to 'public', i have that : Cannot call forward_static_call() when no class scope is active

an idea ? Thank you