-
-
Notifications
You must be signed in to change notification settings - Fork 150
Open
Description
There is a bug with the relationship definition in the Deal model.
The morph column is field_valueable_id not custom_field_valueable_id, so this should be 'field_valueable'.
/**
* Get all of the lead's custom field values.
*/
public function customFieldValues()
{
return $this->morphMany(\VentureDrake\LaravelCrm\Models\FieldValue::class, 'field_valueable');
}
(Same goes for models: Invoice, Lead, Order, PurchaseOrder, Quote)
There is also a problem when saving a Deal with custom fields (guess in other models as well), the value doesn't get saved, but I have to dig deeper for that.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels