Ok, so i have a serializer class to convert the object. But where should i do that? I would say in the controller, but then i have to inject the serializer in every controller where i want to convert an object like that.
Am Freitag, 5. September 2014 09:40:38 UTC+2 schrieb Jàπ (Jasper N. Brouwer): > > Hi Dominik, > > I think you want to look at JMS Serializer: > http://jmsyst.com/libs/serializer > > -- > Jasper N. Brouwer > (@jaspernbrouwer) > > > On 5 September 2014 at 08:41:11, Dominik Barann ([email protected] > <javascript:>) wrote: > > what and where is the best way to convert a doctrine entity to an array? > > > > I have a controller where i have to return the entity as json, and > receive > > my entity object from a service layer which is injected into the > controller. > > > > Thanks and regards > > Dominik > > > -- 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.
