Fixes for eager loading
This commit is contained in:
parent
f2cf84669c
commit
ff7799b0bf
1 changed files with 2 additions and 1 deletions
|
|
@ -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';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue