0
可捕獲的致命錯誤:傳遞給Rocket \ BackendBundle \ Entity \ PropertyRequest :: setAgent()的參數1必須是Rocket \ UserBundle \ Entity \ Agent的實例,給出Rocket \ UserBundle \ Entity \ Broker的實例,symfony 2.8問題
public function askQuestionPropertyRequest(Agent $agent,User $lead, $text,$type,$mls,$lsviewid)
{
$this->propertyRequest->setAgent($agent);
$this->propertyRequest->setLead($lead);
// $this->propertyRequest->setBroker($broker);
// $propertyRequest->setLender($lender);
$this->propertyRequest->setSubject("Property Request From {$lead->getFirstName()} {$lead->getLastName()}");
$this->propertyRequest->setMessage("Message: {$text}");
$this->propertyRequest->setType($type);
$this->propertyRequest->setCodemls($mls);
$this->propertyRequest->setLsviewid($lsviewid);
}