I am using cakephp 2.5, and I get an error message :
Warning (2): ociexecute(): ORA-00904: "USER"."UF": invalid identifier [ROOT\app\Model\Datasource\Database\Oracle.php, line 432]
At the controller I do have this conditions asking for the user uf column
//Verify controller
$paginate['conditions']['User.uf'] = $this->passedArgs['Verify.uf'];
$paginate['contain'][] = 'User';
At the model I do have a belongsTo property with the user relationship:
//Verify Model
public $belongsTo = array(
'User' => array(
'className' => 'Usuario',
'foreignKey' => 'user_id',
),
How can i relate the User Model with the Verify Model?