Skip to content

Instantly share code, notes, and snippets.

@jackkitley
Last active December 14, 2015 22:49
Show Gist options
  • Save jackkitley/5161568 to your computer and use it in GitHub Desktop.
Save jackkitley/5161568 to your computer and use it in GitHub Desktop.
Please help.
$user=$this->loadModel($id); - Gets this Fine
$userperson = $user->person; - Gets this Fine
$personcontactmap = $userperson->personcontactmaps; - Gets this Fine
$contact = $personcontactmap->contact; - Fails to get this data even though there is a contactid....
var_dump($contact);
exit;
@jackkitley
Copy link
Author

Error is :
PHP notice

Trying to get property of non-object

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment