Fixes for eager loading

This commit is contained in:
David Bomba 2021-05-04 22:20:55 +10:00
parent f2cf84669c
commit ff7799b0bf

View File

@ -27,7 +27,8 @@ class ClientPresenter extends EntityPresenter
return $this->entity->name;
}
$contact = $this->entity->primary_contact->first();
//$contact = $this->entity->primary_contact->first();
$contact = $this->entity->contacts->first();
$contact_name = 'No Contact Set';