'Point de vente', 'id_user' => 'Utilisateur', 'comment' => 'Commentaire' ]; } 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); } public function getUser() { return $this->hasOne(User::class, ['id' => 'id_user']); } public function populateUser(User $user): void { $this->populateFieldObject('id_user', 'user', $user); } }