public function getFindComment() { return $this->hasOne(OrderDetail::className(), ['id' => 'typeId']); }
public function getProductdetail() { //同样第一个参数指定关联的子表模型类名 // return $this->hasMany(OrderDetail::className(), ['orderId' => 'id']); }
public function getFindComment() { return $this->hasOne(OrderDetail::className(), ['id' => 'typeId']); }
public function getProductdetail() { //同样第一个参数指定关联的子表模型类名 // return $this->hasMany(OrderDetail::className(), ['orderId' => 'id']); }