Have User and UserProfile models. User model has hasOne association with UserProfile. UserProfile mysql table is empty. When I do $this->User->find('all', array('contain' => array('UserProfile'))) instead of an empty UserProfile array, as you would expect, I get an array populated with empty fields that correspond to schema:
Array
(
[0] => Array
(
[User] => Array
(
[id] => 1
[firstname] => Joe
[surname] => Bloggs
[email] => [email protected]
[password] => $2a$10$re4r7AXWQcXgkKcabUqmtO6j.7p2bA1t2SLeG93eVsiDPBgGaeXRS
[enabled] => 1
[user_group_id] => 1
[created] => 2014-06-26 15:01:38
[modified] => 2014-06-26 15:01:38
)
[UserProfile] => Array
(
[id] =>
[job_title] =>
[user_id] =>
[enabled] =>
[created] =>
[modified] =>
)
)
Anyone seen this and know how to fix it?!