CakePHP ACL插入NULL

I have the following:

User

Groups

in the groups table i have three groups:

Employee, Client and testGroup

Now when i try to add new users i use the following form:

enter image description here

As you can see from this form the Add user controller registers all of my groups!

However when i add the new user my user is inserted into the Users table but with group id null:

enter image description here

And in my Aros the parent_id is null aswell.

Now this is my User model:

    class User extends AppModel {
    public $belongsTo = array('Group');
    public $actsAs = array('Acl' => array('type' => 'requester'));

    function parentNode(){
        if (!$this->id) {
            return null;
        }
        $data = $this->read();
        if (!$data['User']['group_id']){
            return null;
        } else {
            return array('model' => 'Group', 'foreign_key' => $data['User']['group_id']);
        }
    }

    public function bindNode($user) {
        return array('model' => 'Group', 'foreign_key' => $user['User']['group_id']);
    }
// ...

    public function beforeSave($options = array()) {
        if (isset($this->data[$this->alias]['password'])) {
            $this->data[$this->alias]['password'] = AuthComponent::password($this->data[$this->alias]['password']);
        }
        return true;
    }
}

And this is my User controller:

App::uses('Security', 'Utility');

class UsersController extends AppController {

public $components = array(
    'Cookie',
    'BloglicHelper',
    'Session',
    'HasOffers',
    'RequestHandler'
);

function beforeFilter() {
    $this->Auth->allow('add', 'index', 'login','logout');
}

function add() {
    if (!empty($this->data)) {
        $this->User->create();
        if ($this->User->saveAll($this->data)) {
            $this->Session->setFlash(__('The User has been saved', true));
            $this->redirect(array('action'=>'index'));
        } else {
            $this->Session->setFlash(__('The User could not be saved. Please, try again.', true));
        }
    }
    $groups = $this->User->Group->find('list');
    $this->set(compact('groups'));
}

Can anyone tell me what im doing wrong

Update When i try to print out the data from the form i get the following:

Array ( [User] => Array ( [username] => root [password] => admin ) [group_id] => 1 ) 

Which is correct.

Try to see your view, probably your form incorrectly. when you do a debug $ this-> data should be answered in this way:

Array ( 
      [User] => Array 
             ( 
               [username] => root 
               [password] => admin 
               [group_id] => 1 
             ) 
       )