even i changed the naming convention with my primary key it doesn't
helps me
making the $hasOne to work well.... still getting NULL value as a
result.
===========================
My Model:
class UserDetail extends AppModel
{
var $name = 'UserDetail';
var $hasOne = array('BasicInfo' =>
array('className' => 'BasicInfo',
'conditions' => '',
'order' => '',
'foreignKey' =>
'userdetails_id'
)
);
}
class BasicInfo extends AppModel
{
var $name = 'BasicInfo';
}
My Controller:
class AdministratorController extends AppController
{
var $uses = array('UserDetail', 'AdminDetail');
function view_isers()
{
$result = $this->UserDetail->findAll();
}
}
that's my code.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---