diff --git a/app/Models/Plant.php b/app/Models/Plant.php index d0ca0d1..ce7cabc 100644 --- a/app/Models/Plant.php +++ b/app/Models/Plant.php @@ -90,7 +90,7 @@ class Plant extends Model public function processOrders() { - return $this->hasMany(ProcessOrder::class); + return $this->hasMany(ProcessOrder::class, 'plant_id', 'id'); } public function productCharacteristicsMasters()