A
A
an232014-06-06 16:17:00
symfony
an23, 2014-06-06 16:17:00

How can the Entity Manager be accessed using the pre_deserialize event in jms_serializer?

Good afternoon. When the project object is deserialized, a responsible_id comes from the client, which should be transformed into the User entity. Those. as I understand it, I need to find the corresponding user in the pre_deserialize event and assign it to the future object. I can’t get this user yet, because I don’t know how to get access to the entity manager

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
keltanas, 2014-06-10
@keltanas

Maybe it's worth using the method of a separate service as a licenser ? And entity manager to inject into it through the container?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question