'ID', 'id_order' => 'Commande', 'id_user' => 'Utilisateur', 'status' => 'Statut', 'origin' => 'Origine', 'date' => 'Date', ]; } /* * Relations */ public function getOrder() { return $this->hasOne(Order::class, ['id' => 'id_order']); } public function populateOrder(Order $order): void { $this->populateFieldObject('id_order', 'order', $order); } public function getUser() { return $this->hasOne(User::class, ['id' => 'id_user']); } public function populateUser(User $user): void { $this->populateFieldObject('id_user', 'user', $user); } }