litecqrs-php icon indicating copy to clipboard operation
litecqrs-php copied to clipboard

Question : How to get Entity property?

Open fpoirier1 opened this issue 10 years ago • 0 comments

I am discovering the CQRS beauty and I am trying to figure out how to use it in a Symfony2 project (the do CQRS process in the Controller). Based on the example, how should I do to retreive the User profile ? Is it good practice to create a getEmail method for instance or should I use the repository to get scalar data or is there another way you guys suggest ?

fpoirier1 avatar Feb 13 '14 15:02 fpoirier1