ErrorException [ Notice ]: Trying to get property 'id' of non-object

APPPATH/classes/controller/page.php [ 104 ]

 99 			$this->data->page = R::findOne('products', 'slugen=? and subparent=?', array($page, $this->data->parent->id) );
100 		}
101 
102 
103 
104 		$this->getLeft($this->data->grandpa->id, $this->data->parent, $this->data->page);
105 		$this->view = "productDetail";
106 		$this->data->title = " - ";
107 
108 	}
109 
  1. APPPATH/classes/controller/page.php [ 104 ] » Kohana_Core::error_handler(arguments)

  2. {PHP internal call} » Controller_Page->action_productdetail()

  3. SYSPATH/classes/kohana/request/client/internal.php [ 118 ] » ReflectionMethod->invoke(arguments)

  4. SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  5. SYSPATH/classes/kohana/request.php [ 1138 ] » Kohana_Request_Client->execute(arguments)

  6. DOCROOT/index.php [ 111 ] » Kohana_Request->execute()

Environment