Find all with contain in cakePhp 2.5.6

I have a controller where I have a find all with a contain clause and in the conditions I want to add a condition with the contain, but the controller doesn’t add me the join for the contain, please tell me where is the error.
This is the code of the controller:

$users = $this->User->find('all',array('recursive' =>2,'contain'=>array('UserxGroup'),'conditions'=>array('UserxGroup.group_id' => $this->controllerUser['group_id'],'UserxGroup.net_id' => $this->controllerUser['net_id'],'UserxGroup.main_gate' => $this->controllerUser['main_gate'],'User.profile_id IN' => array(3,4,5,6))));
$this->set('model',$users);

Let me clarify that UserxGroup is a hasmany relation to User, that is User has many UserxGroup.
This is the code for User:

<?php
     App::uses('BlowfishPasswordHasher', 'Controller/Component/Auth');
     class User extends AppModel {
         var $name = 'User';

         public $virtualFields = array(
            'full_name' => "CONCAT(User.firstname, ' ',User.lastname)"
        );
         
        public $displayField = 'full_name';

        public $order = array('User.profile_id', 'User.lastname');
         
        public $belongsTo = array(
            'Profile' => array(
                'className' => 'Profile'
            ),
            'Referrer' => array(
                'className' => 'User',
                'foreignKey' => 'referrer_id'
            )
        );

        public $hasMany = array(
            'UserxGroup' => array(
                'className' => 'UserxGroup',
                'foreignKey' => 'user_id'
            ),
            'Pacient' => array(
                'className' => 'Pacient'
            )
        );

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

         var $actsAs = array(
            'UploadPack.Upload' => array(
                'image' => array(
                    'styles' => array(
                        'thumb' => '200x200',
                        'detail' => '512x512'
                    )
                )
            )
        );
     }
?>

And this is the code for UserxGroup:

<?php
     class UserxGroup extends AppModel {
         var $name = 'UserxGroup';
         
        public $belongsTo = array(
            'User' => array(
                'className' => 'User',
                'foreignKey' => 'user_id'
            ),
            'Net' => array(
                'className' => 'Net',
                'foreignKey' => 'net_id'
            ),
            'Group' => array(
                'className' => 'Group',
                'foreignKey' => 'group_id'
            )
        );
     }
?>

You can try to print the $user and check your query is correct or not.

I can’t, when I try to enter to the page if gives me this error:

I changed the code of the controller to this:

$users = $this->User->find('all',array('recursive'=>2,'contain'=>array('UserxGroup'=>array('conditions'=>array('User.profile_id IN' => array(3,4,5,6),'UserxGroup.group_id' => $this->controllerUser['group_id'],'UserxGroup.net_id' => $this->controllerUser['net_id'],'UserxGroup.main_gate' => $this->controllerUser['main_gate'])))));
$this->set('model',$users);

Can you tell me where is the error?

Please answer me this question as soon as possible, I need with urgency to solve this issue.
Thank you very much.

User is the model I use to authenticate in login action, maybe I have to define somewhere else the hasmany relation with UserxGroup, if so, where should I do it?