Answer the question
In order to leave comments, you need to log in
How to solve the problem of saving multiple entities?
Please tell me what is the difference between the 2 codes:
1)
public function setSave()
{
$this->entityManager->flush();
}
public function setSave2(EntityMS $entityMS)
{
$this->entityManager->merge($entityMS);
$this->entityManager->flush();
$this->entityManager->clear();
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question