Replies: 3 comments 6 replies
-
First use instanceof check class, and use it, like this if ($user instanceof Admin) {
// todo
} |
Beta Was this translation helpful? Give feedback.
-
Other a question, how to insert a record to admin table, if user table has one record, and admin table is no record. like this: user table id username admin table id remark no records in admin table i will insert a record to admin table |
Beta Was this translation helpful? Give feedback.
-
If you correctly set the Entity and Column attributes, the entity property will be automatically filled. You can either make the property public or add a getter. |
Beta Was this translation helpful? Give feedback.
-
How do can access Admin.age attribute?
Beta Was this translation helpful? Give feedback.
All reactions