Skip to content

Difficulties with form request handling in a simple CRUD-application #49857

Answered by ahundiak
jrathert asked this question in Q&A
Discussion options

You must be logged in to vote

It is one of those age old discussions that will never be settled. Kind of comforting in a way.

Doctrine is database driven with one to one mappings between Doctrine entities and database tables. In principle your business entities should be database ignorant and designed strictly via business requirements. The problem is that for a large portions of the applications I work on, Doctrine and business entities are the same. They are basically CRUD. So why bother introducing complexity that is not needed.

On the other hand the fun stuff is where you actually have business entities that truly are database independent. It is typically worth the effort to have form specific DTO because the mapp…

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@ahundiak
Comment options

@jrathert
Comment options

@jrathert
Comment options

@ahundiak
Comment options

@aszenz
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jrathert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants