'Distribution', 'id_point_sale' => 'Point de vente', 'delivery' => 'Livraison', ]; } /* * Relations */ public function getDistribution() { return $this->hasOne(Distribution::class, ['id' => 'id_distribution']); } public function populateDistribution(Distribution $distribution): void { $this->populateFieldObject('id_distribution', 'distribution', $distribution); } public function getPointSale() { return $this->hasOne(PointSale::class, ['id' => 'id_point_sale']); } public function populatePointSale(PointSale $pointSale): void { $this->populateFieldObject('id_point_sale', 'pointSale', $pointSale); } }