Answer the question
In order to leave comments, you need to log in
How to use Jms Serializer with Doctrine with Lazy setup?
Hello everyone, maybe someone came across, I'm trying to use jms Serializer, but since the data comes from the doctrine and the lazy anatomy is registered in the entity, the object is serialized empty ...
Is there any simple way to solve the problem?
Thank you all in advance
Answer the question
In order to leave comments, you need to log in
@Accessor
annotation
/** @Accessor(getter="getName") */
private $name;
public function getName()
{
return $this->name;
}
@serializer
immediately after installing the component and you can simply inject it through SerializerInterface
in the constructor
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question