Merge pull request #5602 from turbo124/v5-develop

Fixes for eager loading
This commit is contained in:
David Bomba 2021-05-04 22:21:34 +10:00 committed by GitHub
commit 40457b0a70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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';