YES! Found it. Actually the problem was in the function parentNode() in 
User.php model:

function parentNode(){
        if(!$this->id && empty($this->data)) return null;
        $data= empty($this->data) ? $this->read() : $this->data;
        if(empty($data['User']['group_id']))
            return null;
        else
            return array('Group'=>array('id'=>$data['User']['group_id']));
    }

instead of this:
          $data= empty($this->data) ? $this->read() : $this->data;
put this (actually $this->data didn't have group_id...): 
        $data=$this->read();

and it works! : )

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to