Answer the question
In order to leave comments, you need to log in
How to set up input/output data to different Symfony entities?
Good day!
My project is to create users with data about them and a picture and have the possibility of CRUD.
I am writing it on the latest version of Symfony using PostgreSQL.
There are two entities:
1. Standard for authentication User (id, email, password, roles, user_detail) not changeable, I already tried to add fields, if you know why you can’t change the working fields of the table by simply editing the migration file and editing User.php, write.
2. Additional according to the user UserDetail (id, username, content, image, user_id) - what I tried to put in the first entity.
How can I set up output and write to these two entities at the same time? I look at the manual and see a fig, and not because it is in English, I spent a lot of hours and did not understand. If anyone can give advice, please help. What and where should I write for this.
My project
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question