hallo there,
As noob with yii, i try to use the nestedset extension. I created a category table, model, cruds and i am trying to figure out how things should be done. I want to have a hierarhy of categories in my db.
When i try to run my example i get the following error:
TreeBehavior does not have a method named "getIsNewRecord".
Seems that the getIsNewRecord() call is made to the TreeBehaviour that has not this method!
So from stacktrace i see that the call responsible for this is in TreeBehavior.php line 366
361 public function appendChild($node, $brother = null)
362 {
363 // Fetch nodes information
364 $parent = $this;
365 $transaction= $this->Owner->dbConnection->beginTransaction();
366 if($this->getIsNewRecord())
i think that one solution is to change line 366 to the following
366 if($this->Owner->getIsNewRecord())
in order to refer to the actual component that has the getIsNewRecord(), instead of refering to the behaviour that doesn’t have it…
hope, this will help some people on the long road for Ithake…