Answer the question
In order to leave comments, you need to log in
Is it possible to edit incomplete entities in doctrine?
The essence of the question is this: if you select an entity with a limited set of fields using partial , is it even possible to use it for subsequent changes in the database? For example, we select only id while the application is running, we change the value value and run flush (), so that only the value value changes in the database, because the rest of the fields are naturally null.
I anticipate, in principle, a reasonable question, why be so perverted, the application works with big data and quite often, choosing all the fields each time when you often need to edit only one is quite expensive.
Answer the question
In order to leave comments, you need to log in
If I correctly understand the dock according to the doctrine, then it is impossible. I quote:
from here
I anticipate, in principle, a reasonable question, why be so perverted, the application works with big data and quite often, choosing all the fields each time when you often need to edit only one is quite expensive.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question