I am trying to catch \'Trying to get property of non-object\' error with a try/catch statement but it is failing, I still get a PHP error. I am using as:
try..catch works on thrown exceptions. Errors are not exceptions. You can silence errors, but please don't do that. Instead, properly check what you're getting:
$result = Model()->find('id=1');
if ($result) {
$id = $result->id;
} else {
// handle this situation
}