mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
fix creation of new household during move
This commit is contained in:
@@ -54,6 +54,11 @@ class HouseholdMemberController extends ApiController
|
||||
//
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
|
||||
// if new household, persist it
|
||||
if (FALSE === $em->contains($editor->getHousehold())) {
|
||||
$em->persist($editor->getHousehold());
|
||||
}
|
||||
|
||||
foreach ($editor->getPersistable() as $el) {
|
||||
$em->persist($el);
|
||||
}
|
||||
|
Reference in New Issue
Block a user