I want to avoid getters / seters hell in my entities (here's why: http://ocramius.imtqy.com/doctrine-best-practices/#/53 ), but also the most popular admin admin panel:
need recipients and setters to visualize the view.
My idea is to create a DTO object instead ( http://ocramius.imtqy.com/doctrine-best-practices/#/57 ) and then use named constructors to create the entities. I want to call named constructor inside my service. What is the best way to get admin panel generators to use my DTOs to save / update data, can you give me an idea and / or best practice example in this case?
The only way I imagined was to use DTO instead of real Entity, call intercept prePersist / preUpdate and use a custom service, but that seems confusing.
DDD ( ) .
, CRUD . , CRUD BC. BC, , , .
, , , . - , , , .
Source: https://habr.com/ru/post/1627806/More articles:Is double locking check performed with final card in Java? - javaWhat is a back shell? - shellSet a class variable from a module - ruby | fooobar.comReplace a few dots in a string with a different character, but with the same sum - stringPandas and Rolling_Mean offset (average daily volume calculation) - pythonKibana: combining two documents into a table visualization - elasticsearchDownload angular file - javascriptThe -t option cannot be used in iptables-restore - linuxiOS Сохраняется ли сохранение данных в каталоге групповой группы? - iosactivation of a custom new window when debugging in a visual studio - debuggingAll Articles