未定义的属性:stdClass :: $ test

时间:2016-10-12 19:35:35

标签: php laravel-4.2

我从这一行得到了这个错误

<p><strong>{{ Lang::choice('messages.test-type',1) }}</strong>
    {{$unhlsspecimen->test->testType->name}}</p> <!-- query failing unhls -->
</p>

dd(var_dump($unhlsspecimen))给了我以下内容:

  

object(stdClass)#839(25){[“id”] =&gt; int(30)[“visit_id”] =&gt; int(18)[“test_type_id”] =&gt; int(1)[“samples_id”] =&gt; int(30)[“解释”] =&gt; string(0)“”[“test_status_id”] =&gt; int(2)[“created_by”] =&gt; int(1)[“tested_by”] =&gt; int(0)[“verified_by”] =&gt; int(0)[“requested_by”] =&gt; string(19)“kBLIS Administrator”[“time_created”] =&gt; string(19)“2016-10-05 10:24:21”[“time_started”] =&gt; NULL [“time_completed”] =&gt; NULL [“time_verified”] =&gt; NULL [“time_sent”] =&gt; NULL [“external_id”] =&gt; NULL [“specimen_type_id”] =&gt; int(23)[“specimen_status_id”] =&gt; int(2)[“accepted_by”] =&gt; int(1)[“rejected_by”] =&gt; int(0)[“rejection_reason_id”] =&gt; NULL [“reject_explained_to”] =&gt; NULL [“referral_id”] =&gt; NULL [“time_accepted”] =&gt; string(19)“2016-10-12 13:16:49”[“time_rejected”] =&gt; NULL} NULL

0 个答案:

没有答案