mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
backend: allow to remove people from household, or move to a new household
This commit is contained in:
@@ -55,7 +55,11 @@ class HouseholdMemberController extends ApiController
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
|
||||
// if new household, persist it
|
||||
if (FALSE === $em->contains($editor->getHousehold())) {
|
||||
if (
|
||||
$editor->hasHousehold()
|
||||
&&
|
||||
FALSE === $em->contains($editor->getHousehold())
|
||||
) {
|
||||
$em->persist($editor->getHousehold());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user