public function bindNode() {
$data = AuthComponent::user();
return array('model' => 'Group', 'foreign_key' => $data['User']['group_id']);
}
This worked for me. It took me many hours to find this somewhere in Google. I am posting here so, you do not have to waste hours for this.Blog/Web Development