I have a table named tblMyUser. MyUserId is the primary key of the table. When I want to create one User using $myUser = MyUser::create(); and when I am trying to return $myUser->MyUserId, it does not return the inserted id. Instead, returns a different number.
Have anyone any idea how to retrieve the inserted id?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire