beberlei / litecqrs-php

Small convention based CQRS library for PHP
MIT License
553 stars 47 forks source link

Question : How to get Entity property? #49

Open fpoirier1 opened 10 years ago

fpoirier1 commented 10 years ago

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 ?