I suggest you read the blog post "On Taming Repository Classes in Doctrine" by 
Benjamin Eberlei, which describes IMHO a better way to approach this problem.

http://www.whitewashing.de/2013/03/04/doctrine_repositories.html 

--  
Jasper N. Brouwer
(@jaspernbrouwer)


On 3 December 2014 at 10:43:44, Andrius Kulbis ([email protected]) wrote:
> I want to be able to get requested fields of entity via REST API,
> including the associated field.
>  
> Like i request /api/employee?fields=position and I get only data of this
> associated field (id, name) or multimple associated fields, or
> associated fields + entity fields in one nice object, like the Doctrine2
> gives me if I guery for the entity. Can't firuge out how to do this.


-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to