Artwork

Контент предоставлен Пятиминутка PHP. Весь контент подкастов, включая выпуски, графику и описания подкастов, загружается и предоставляется непосредственно Пятиминутка PHP или его партнером по платформе подкастов. Если вы считаете, что кто-то использует вашу работу, защищенную авторским правом, без вашего разрешения, вы можете выполнить процедуру, описанную здесь https://ru.player.fm/legal.
Player FM - приложение для подкастов
Работайте офлайн с приложением Player FM !

Выпуск №43 - Using Symfony Forms with Rich Domain Models

3:16
 
Поделиться
 

Manage episode 222877403 series 90501
Контент предоставлен Пятиминутка PHP. Весь контент подкастов, включая выпуски, графику и описания подкастов, загружается и предоставляется непосредственно Пятиминутка PHP или его партнером по платформе подкастов. Если вы считаете, что кто-то использует вашу работу, защищенную авторским правом, без вашего разрешения, вы можете выполнить процедуру, описанную здесь https://ru.player.fm/legal.
В этом выпуске Валентин Удальцов из Лиссабона с конференции SymfonyCon Lisbon 2018 (которая проходит прямо сейчас) делает краткий обзор на доклад Using Symfony Forms with Rich Domain Models. https://lisbon2018.symfony.com/ Christopher Hertel , Christian Flothmann With the popularisation of DDD people started shifting from anemic models with only getters and setters to a rich model describing the state changes in specific methods. This way of designing models does not play well with Symfony forms. User provided input is inherently invalid while we want to maintain certain invariants in our domain model. A common approach to overcome these limitations is to create data transfer objects our forms are then bound to. This can lead to lots of mapping & glue code that might be cumbersome to write and maintain. But couldn’t we do better? In this talk we will discuss the different aspects of a rich domain model that makes it hard to use it in conjunction with the Form component. We will then look at the possibilities to hook into the data flow of the form handling and discover how we can modify it to interact seamlessly with our model. Пятиминутка PHP - подкаст о новостях из мира PHP, интересных постах в блогах и современных подходах к разработке. https://5minphp.ru
  continue reading

114 эпизодов

Artwork
iconПоделиться
 
Manage episode 222877403 series 90501
Контент предоставлен Пятиминутка PHP. Весь контент подкастов, включая выпуски, графику и описания подкастов, загружается и предоставляется непосредственно Пятиминутка PHP или его партнером по платформе подкастов. Если вы считаете, что кто-то использует вашу работу, защищенную авторским правом, без вашего разрешения, вы можете выполнить процедуру, описанную здесь https://ru.player.fm/legal.
В этом выпуске Валентин Удальцов из Лиссабона с конференции SymfonyCon Lisbon 2018 (которая проходит прямо сейчас) делает краткий обзор на доклад Using Symfony Forms with Rich Domain Models. https://lisbon2018.symfony.com/ Christopher Hertel , Christian Flothmann With the popularisation of DDD people started shifting from anemic models with only getters and setters to a rich model describing the state changes in specific methods. This way of designing models does not play well with Symfony forms. User provided input is inherently invalid while we want to maintain certain invariants in our domain model. A common approach to overcome these limitations is to create data transfer objects our forms are then bound to. This can lead to lots of mapping & glue code that might be cumbersome to write and maintain. But couldn’t we do better? In this talk we will discuss the different aspects of a rich domain model that makes it hard to use it in conjunction with the Form component. We will then look at the possibilities to hook into the data flow of the form handling and discover how we can modify it to interact seamlessly with our model. Пятиминутка PHP - подкаст о новостях из мира PHP, интересных постах в блогах и современных подходах к разработке. https://5minphp.ru
  continue reading

114 эпизодов

Все серии

×
 
Loading …

Добро пожаловать в Player FM!

Player FM сканирует Интернет в поисках высококачественных подкастов, чтобы вы могли наслаждаться ими прямо сейчас. Это лучшее приложение для подкастов, которое работает на Android, iPhone и веб-странице. Зарегистрируйтесь, чтобы синхронизировать подписки на разных устройствах.

 

Краткое руководство