relation issues

Hi All,

Please see my code

<?php echo $operator->operators->name;?> - this line is working fine


  • this line show the error Trying to get property of non-object


This line print the port name without any error. the only extra thing i did was put an exit.

I think this is something with the lazy loading , since i am a begginner couldnt resolve this. please help…



Try to use


via_ports is null (it means that related object not exists)