Difference between class field of class object and data_class

Every time I want to use the entity field, I am always confused between the class and the data_class of the entity field parameters.

I read the documentation in French and English, and it seems I do not understand. I would like to have a usage example so that I can visualize it.

+4
source share
2 answers

Data_class is not required Entity Entity. It may be useful if you use a data access object for different domain objects than Objets models.

+1
source

, - , Entity, data_class ( Doctrine ). , .

0

All Articles