I really use Doctrine2 in a Zend Framework project.
I am creating an API that will be used as a Restfull web service, and I actually use the Serializer Entity and / or the result of the array.
However, my problem is that my entity is completely serialized, so fields such as password or email are returned.
This is not a problem when working with a private call, but for a public API.
How can I solve this problem?
Trent source share