}
    $marriage->setIdGodFather($godFather->getId());
}
//Process The GodMother
if ($_POST["nameGodMother"] !== '') {
    $godMother = PersonManager::getSinglePerson('names', $_POST["nameGodMother"], 'lastname1', $_POST["lastname1GodMother"], 'lastname2', $_POST["lastname2GodMother"]);
    if ($godMother === NULL) {
        $godMother = new Person();
        $godMother->setNames($_POST["nameGodMother"]);
        $godMother->setLastname1($_POST["lastname1GodMother"]);
        $godMother->setLastname2($_POST["lastname2GodMother"]);
        $godMother->setGender('F');
        PersonManager::addPerson($godMother, 'true');
        $godMother = PersonManager::getSinglePerson('id', PersonManager::getLastID());
    }
    $marriage->setIdGodMother($godMother->getId());
}
//Process The Witness1
if ($_POST["nameWitness1"] !== '') {
    $witness1 = PersonManager::getSinglePerson('names', $_POST["nameWitness1"], 'lastname1', $_POST["lastname1Witness1"], 'lastname2', $_POST["lastname2Witness1"]);
    if ($witness1 === NULL) {
        $witness1 = new Person();
        $witness1->setNames($_POST["nameWitness1"]);
        $witness1->setLastname1($_POST["lastname1Witness1"]);
        $witness1->setLastname2($_POST["lastname2Witness1"]);
        PersonManager::addPerson($witness1, 'true');
        $witness1 = PersonManager::getSinglePerson('id', PersonManager::getLastID());
    }
    $marriage->setIdWitness1($witness1->getId());
}
//Process The Witness1