}
$church = ChurchManager::getSingleChurch('name', $_POST["celebrationChurch"]);
$child = new Person();
if ($_POST["idChild"] !== '0' && $_POST["idChild"] !== '') {
    $child = PersonManager::getSinglePerson('id', $_POST["idChild"]);
}
$child->setId($_POST["idChild"]);
$child->setNames($_POST["nameChild"]);
$child->setLastname1($_POST["lastname1Child"]);
$child->setLastname2($_POST["lastname2Child"]);
$confirmation = new Confirmation();
$confirmation->setId($_POST["idConfirmation"]);
$celb = DatabaseManager::singleDateToDatabaseDate($_POST["celebrationDate"]);
$confirmation->setCelebrationDate($celb);
$confirmation->setIdChurch($church->getId());
$confirmation->setIdRector($_POST["rectorId"]);
//Data Process for the Father
$father = new Person();
if ($_POST["idFather"] !== '0' && $_POST["idFather"] !== '') {
    $father = PersonManager::getSinglePerson('id', $_POST["idFather"]);
    $father->setId($_POST["idFather"]);
    $father->setNames($_POST["nameFather"]);
    $father->setLastname1($_POST["lastname1Father"]);
    $father->setLastname2($_POST["lastname2Father"]);
    $father->setGender('M');
    PersonManager::updatePerson($father);
} else {
    if ($_POST["nameFather"] !== '') {
        $father = new Person();
        $father->setId(0);
        $father->setNames($_POST["nameFather"]);