/** * Performs the work of inserting or updating the row in the database. * * If the object is new, it inserts it; otherwise an update is performed. * All related objects are also updated in this method. * * @param ConnectionInterface $con * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. * @throws PropelException * @see save() */ protected function doSave(ConnectionInterface $con) { $affectedRows = 0; // initialize var to track total num of affected rows if (!$this->alreadyInSave) { $this->alreadyInSave = true; // We call the save method on the following object(s) if they // were passed to this object by their corresponding set // method. This object relates to these object(s) by a // foreign key reference. if ($this->auserSysRef !== null) { if ($this->auserSysRef->isModified() || $this->auserSysRef->isNew()) { $affectedRows += $this->auserSysRef->save($con); } $this->setuserSysRef($this->auserSysRef); } if ($this->isNew() || $this->isModified()) { // persist changes if ($this->isNew()) { $this->doInsert($con); $affectedRows += 1; } else { $affectedRows += $this->doUpdate($con); } $this->resetModified(); } if ($this->batchesScheduledForDeletion !== null) { if (!$this->batchesScheduledForDeletion->isEmpty()) { $pks = array(); foreach ($this->batchesScheduledForDeletion as $entry) { $entryPk = []; $entryPk[1] = $this->getId(); $entryPk[0] = $entry->getId(); $pks[] = $entryPk; } \RBatchForbookQuery::create()->filterByPrimaryKeys($pks)->delete($con); $this->batchesScheduledForDeletion = null; } } if ($this->collBatches) { foreach ($this->collBatches as $batch) { if (!$batch->isDeleted() && ($batch->isNew() || $batch->isModified())) { $batch->save($con); } } } if ($this->rightssScheduledForDeletion !== null) { if (!$this->rightssScheduledForDeletion->isEmpty()) { $pks = array(); foreach ($this->rightssScheduledForDeletion as $entry) { $entryPk = []; $entryPk[1] = $this->getId(); $entryPk[0] = $entry->getId(); $pks[] = $entryPk; } \RRightsForbookQuery::create()->filterByPrimaryKeys($pks)->delete($con); $this->rightssScheduledForDeletion = null; } } if ($this->collRightss) { foreach ($this->collRightss as $rights) { if (!$rights->isDeleted() && ($rights->isNew() || $rights->isModified())) { $rights->save($con); } } } if ($this->templatenamessScheduledForDeletion !== null) { if (!$this->templatenamessScheduledForDeletion->isEmpty()) { $pks = array(); foreach ($this->templatenamessScheduledForDeletion as $entry) { $entryPk = []; $entryPk[1] = $this->getId(); $entryPk[0] = $entry->getId(); $pks[] = $entryPk; } \RTemplatenamesForbookQuery::create()->filterByPrimaryKeys($pks)->delete($con); $this->templatenamessScheduledForDeletion = null; } } if ($this->collTemplatenamess) { foreach ($this->collTemplatenamess as $templatenames) { if (!$templatenames->isDeleted() && ($templatenames->isNew() || $templatenames->isModified())) { $templatenames->save($con); } } } if ($this->rBatchForbooksScheduledForDeletion !== null) { if (!$this->rBatchForbooksScheduledForDeletion->isEmpty()) { \RBatchForbookQuery::create()->filterByPrimaryKeys($this->rBatchForbooksScheduledForDeletion->getPrimaryKeys(false))->delete($con); $this->rBatchForbooksScheduledForDeletion = null; } } if ($this->collRBatchForbooks !== null) { foreach ($this->collRBatchForbooks as $referrerFK) { if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { $affectedRows += $referrerFK->save($con); } } } if ($this->rRightsForbooksScheduledForDeletion !== null) { if (!$this->rRightsForbooksScheduledForDeletion->isEmpty()) { \RRightsForbookQuery::create()->filterByPrimaryKeys($this->rRightsForbooksScheduledForDeletion->getPrimaryKeys(false))->delete($con); $this->rRightsForbooksScheduledForDeletion = null; } } if ($this->collRRightsForbooks !== null) { foreach ($this->collRRightsForbooks as $referrerFK) { if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { $affectedRows += $referrerFK->save($con); } } } if ($this->rTemplatenamesForbooksScheduledForDeletion !== null) { if (!$this->rTemplatenamesForbooksScheduledForDeletion->isEmpty()) { \RTemplatenamesForbookQuery::create()->filterByPrimaryKeys($this->rTemplatenamesForbooksScheduledForDeletion->getPrimaryKeys(false))->delete($con); $this->rTemplatenamesForbooksScheduledForDeletion = null; } } if ($this->collRTemplatenamesForbooks !== null) { foreach ($this->collRTemplatenamesForbooks as $referrerFK) { if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { $affectedRows += $referrerFK->save($con); } } } if ($this->formatssScheduledForDeletion !== null) { if (!$this->formatssScheduledForDeletion->isEmpty()) { \FormatsQuery::create()->filterByPrimaryKeys($this->formatssScheduledForDeletion->getPrimaryKeys(false))->delete($con); $this->formatssScheduledForDeletion = null; } } if ($this->collFormatss !== null) { foreach ($this->collFormatss as $referrerFK) { if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { $affectedRows += $referrerFK->save($con); } } } if ($this->issuessScheduledForDeletion !== null) { if (!$this->issuessScheduledForDeletion->isEmpty()) { \IssuesQuery::create()->filterByPrimaryKeys($this->issuessScheduledForDeletion->getPrimaryKeys(false))->delete($con); $this->issuessScheduledForDeletion = null; } } if ($this->collIssuess !== null) { foreach ($this->collIssuess as $referrerFK) { if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { $affectedRows += $referrerFK->save($con); } } } $this->alreadyInSave = false; } return $affectedRows; }
/** * Performs the work of inserting or updating the row in the database. * * If the object is new, it inserts it; otherwise an update is performed. * All related objects are also updated in this method. * * @param ConnectionInterface $con * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. * @throws PropelException * @see save() */ protected function doSave(ConnectionInterface $con) { $affectedRows = 0; // initialize var to track total num of affected rows if (!$this->alreadyInSave) { $this->alreadyInSave = true; if ($this->isNew() || $this->isModified()) { // persist changes if ($this->isNew()) { $this->doInsert($con); $affectedRows += 1; } else { $affectedRows += $this->doUpdate($con); } $this->resetModified(); } if ($this->bookssScheduledForDeletion !== null) { if (!$this->bookssScheduledForDeletion->isEmpty()) { $pks = array(); foreach ($this->bookssScheduledForDeletion as $entry) { $entryPk = []; $entryPk[0] = $this->getId(); $entryPk[1] = $entry->getId(); $pks[] = $entryPk; } \RRightsForbookQuery::create()->filterByPrimaryKeys($pks)->delete($con); $this->bookssScheduledForDeletion = null; } } if ($this->collBookss) { foreach ($this->collBookss as $books) { if (!$books->isDeleted() && ($books->isNew() || $books->isModified())) { $books->save($con); } } } if ($this->issuessScheduledForDeletion !== null) { if (!$this->issuessScheduledForDeletion->isEmpty()) { $pks = array(); foreach ($this->issuessScheduledForDeletion as $entry) { $entryPk = []; $entryPk[0] = $this->getId(); $entryPk[1] = $entry->getId(); $pks[] = $entryPk; } \RRightsForissueQuery::create()->filterByPrimaryKeys($pks)->delete($con); $this->issuessScheduledForDeletion = null; } } if ($this->collIssuess) { foreach ($this->collIssuess as $issues) { if (!$issues->isDeleted() && ($issues->isNew() || $issues->isModified())) { $issues->save($con); } } } if ($this->templatenamessScheduledForDeletion !== null) { if (!$this->templatenamessScheduledForDeletion->isEmpty()) { $pks = array(); foreach ($this->templatenamessScheduledForDeletion as $entry) { $entryPk = []; $entryPk[0] = $this->getId(); $entryPk[1] = $entry->getId(); $pks[] = $entryPk; } \RRightsFortemplateQuery::create()->filterByPrimaryKeys($pks)->delete($con); $this->templatenamessScheduledForDeletion = null; } } if ($this->collTemplatenamess) { foreach ($this->collTemplatenamess as $templatenames) { if (!$templatenames->isDeleted() && ($templatenames->isNew() || $templatenames->isModified())) { $templatenames->save($con); } } } if ($this->formatssScheduledForDeletion !== null) { if (!$this->formatssScheduledForDeletion->isEmpty()) { $pks = array(); foreach ($this->formatssScheduledForDeletion as $entry) { $entryPk = []; $entryPk[0] = $this->getId(); $entryPk[1] = $entry->getId(); $pks[] = $entryPk; } \RRightsForformatQuery::create()->filterByPrimaryKeys($pks)->delete($con); $this->formatssScheduledForDeletion = null; } } if ($this->collFormatss) { foreach ($this->collFormatss as $formats) { if (!$formats->isDeleted() && ($formats->isNew() || $formats->isModified())) { $formats->save($con); } } } if ($this->userssScheduledForDeletion !== null) { if (!$this->userssScheduledForDeletion->isEmpty()) { $pks = array(); foreach ($this->userssScheduledForDeletion as $entry) { $entryPk = []; $entryPk[0] = $this->getId(); $entryPk[1] = $entry->getId(); $pks[] = $entryPk; } \RRightsForuserQuery::create()->filterByPrimaryKeys($pks)->delete($con); $this->userssScheduledForDeletion = null; } } if ($this->collUserss) { foreach ($this->collUserss as $users) { if (!$users->isDeleted() && ($users->isNew() || $users->isModified())) { $users->save($con); } } } if ($this->rRightsForbooksScheduledForDeletion !== null) { if (!$this->rRightsForbooksScheduledForDeletion->isEmpty()) { \RRightsForbookQuery::create()->filterByPrimaryKeys($this->rRightsForbooksScheduledForDeletion->getPrimaryKeys(false))->delete($con); $this->rRightsForbooksScheduledForDeletion = null; } } if ($this->collRRightsForbooks !== null) { foreach ($this->collRRightsForbooks as $referrerFK) { if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { $affectedRows += $referrerFK->save($con); } } } if ($this->rRightsForissuesScheduledForDeletion !== null) { if (!$this->rRightsForissuesScheduledForDeletion->isEmpty()) { \RRightsForissueQuery::create()->filterByPrimaryKeys($this->rRightsForissuesScheduledForDeletion->getPrimaryKeys(false))->delete($con); $this->rRightsForissuesScheduledForDeletion = null; } } if ($this->collRRightsForissues !== null) { foreach ($this->collRRightsForissues as $referrerFK) { if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { $affectedRows += $referrerFK->save($con); } } } if ($this->rRightsFortemplatesScheduledForDeletion !== null) { if (!$this->rRightsFortemplatesScheduledForDeletion->isEmpty()) { \RRightsFortemplateQuery::create()->filterByPrimaryKeys($this->rRightsFortemplatesScheduledForDeletion->getPrimaryKeys(false))->delete($con); $this->rRightsFortemplatesScheduledForDeletion = null; } } if ($this->collRRightsFortemplates !== null) { foreach ($this->collRRightsFortemplates as $referrerFK) { if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { $affectedRows += $referrerFK->save($con); } } } if ($this->rRightsForformatsScheduledForDeletion !== null) { if (!$this->rRightsForformatsScheduledForDeletion->isEmpty()) { \RRightsForformatQuery::create()->filterByPrimaryKeys($this->rRightsForformatsScheduledForDeletion->getPrimaryKeys(false))->delete($con); $this->rRightsForformatsScheduledForDeletion = null; } } if ($this->collRRightsForformats !== null) { foreach ($this->collRRightsForformats as $referrerFK) { if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { $affectedRows += $referrerFK->save($con); } } } if ($this->rRightsForusersScheduledForDeletion !== null) { if (!$this->rRightsForusersScheduledForDeletion->isEmpty()) { \RRightsForuserQuery::create()->filterByPrimaryKeys($this->rRightsForusersScheduledForDeletion->getPrimaryKeys(false))->delete($con); $this->rRightsForusersScheduledForDeletion = null; } } if ($this->collRRightsForusers !== null) { foreach ($this->collRRightsForusers as $referrerFK) { if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { $affectedRows += $referrerFK->save($con); } } } $this->alreadyInSave = false; } return $affectedRows; }
/** * Performs the work of inserting or updating the row in the database. * * If the object is new, it inserts it; otherwise an update is performed. * All related objects are also updated in this method. * * @param ConnectionInterface $con * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. * @throws PropelException * @see save() */ protected function doSave(ConnectionInterface $con) { $affectedRows = 0; // initialize var to track total num of affected rows if (!$this->alreadyInSave) { $this->alreadyInSave = true; if ($this->isNew() || $this->isModified()) { // persist changes if ($this->isNew()) { $this->doInsert($con); $affectedRows += 1; } else { $affectedRows += $this->doUpdate($con); } $this->resetModified(); } if ($this->rightssScheduledForDeletion !== null) { if (!$this->rightssScheduledForDeletion->isEmpty()) { $pks = array(); foreach ($this->rightssScheduledForDeletion as $entry) { $entryPk = []; $entryPk[1] = $this->getId(); $entryPk[0] = $entry->getId(); $pks[] = $entryPk; } \RRightsForuserQuery::create()->filterByPrimaryKeys($pks)->delete($con); $this->rightssScheduledForDeletion = null; } } if ($this->collRightss) { foreach ($this->collRightss as $rights) { if (!$rights->isDeleted() && ($rights->isNew() || $rights->isModified())) { $rights->save($con); } } } if ($this->rRightsForusersScheduledForDeletion !== null) { if (!$this->rRightsForusersScheduledForDeletion->isEmpty()) { \RRightsForuserQuery::create()->filterByPrimaryKeys($this->rRightsForusersScheduledForDeletion->getPrimaryKeys(false))->delete($con); $this->rRightsForusersScheduledForDeletion = null; } } if ($this->collRRightsForusers !== null) { foreach ($this->collRRightsForusers as $referrerFK) { if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { $affectedRows += $referrerFK->save($con); } } } if ($this->bookssScheduledForDeletion !== null) { if (!$this->bookssScheduledForDeletion->isEmpty()) { foreach ($this->bookssScheduledForDeletion as $books) { // need to save related object because we set the relation to null $books->save($con); } $this->bookssScheduledForDeletion = null; } } if ($this->collBookss !== null) { foreach ($this->collBookss as $referrerFK) { if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { $affectedRows += $referrerFK->save($con); } } } if ($this->contributionssScheduledForDeletion !== null) { if (!$this->contributionssScheduledForDeletion->isEmpty()) { foreach ($this->contributionssScheduledForDeletion as $contributions) { // need to save related object because we set the relation to null $contributions->save($con); } $this->contributionssScheduledForDeletion = null; } } if ($this->collContributionss !== null) { foreach ($this->collContributionss as $referrerFK) { if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { $affectedRows += $referrerFK->save($con); } } } if ($this->datasScheduledForDeletion !== null) { if (!$this->datasScheduledForDeletion->isEmpty()) { foreach ($this->datasScheduledForDeletion as $data) { // need to save related object because we set the relation to null $data->save($con); } $this->datasScheduledForDeletion = null; } } if ($this->collDatas !== null) { foreach ($this->collDatas as $referrerFK) { if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { $affectedRows += $referrerFK->save($con); } } } if ($this->formatssScheduledForDeletion !== null) { if (!$this->formatssScheduledForDeletion->isEmpty()) { foreach ($this->formatssScheduledForDeletion as $formats) { // need to save related object because we set the relation to null $formats->save($con); } $this->formatssScheduledForDeletion = null; } } if ($this->collFormatss !== null) { foreach ($this->collFormatss as $referrerFK) { if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { $affectedRows += $referrerFK->save($con); } } } if ($this->issuessScheduledForDeletion !== null) { if (!$this->issuessScheduledForDeletion->isEmpty()) { foreach ($this->issuessScheduledForDeletion as $issues) { // need to save related object because we set the relation to null $issues->save($con); } $this->issuessScheduledForDeletion = null; } } if ($this->collIssuess !== null) { foreach ($this->collIssuess as $referrerFK) { if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { $affectedRows += $referrerFK->save($con); } } } $this->alreadyInSave = false; } return $affectedRows; }
/** * Performs the work of inserting or updating the row in the database. * * If the object is new, it inserts it; otherwise an update is performed. * All related objects are also updated in this method. * * @param ConnectionInterface $con * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. * @throws PropelException * @see save() */ protected function doSave(ConnectionInterface $con) { $affectedRows = 0; // initialize var to track total num of affected rows if (!$this->alreadyInSave) { $this->alreadyInSave = true; if ($this->isNew() || $this->isModified()) { // persist changes if ($this->isNew()) { $this->doInsert($con); $affectedRows += 1; } else { $affectedRows += $this->doUpdate($con); } $this->resetModified(); } if ($this->allIssuesScheduledForDeletion !== null) { if (!$this->allIssuesScheduledForDeletion->isEmpty()) { $pks = array(); foreach ($this->allIssuesScheduledForDeletion as $entry) { $entryPk = []; $entryPk[1] = $this->getId(); $entryPk[0] = $entry->getId(); $pks[] = $entryPk; } \RIssuesAllpluginQuery::create()->filterByPrimaryKeys($pks)->delete($con); $this->allIssuesScheduledForDeletion = null; } } if ($this->collAllIssues) { foreach ($this->collAllIssues as $allIssue) { if (!$allIssue->isDeleted() && ($allIssue->isNew() || $allIssue->isModified())) { $allIssue->save($con); } } } if ($this->narrationIssuesScheduledForDeletion !== null) { if (!$this->narrationIssuesScheduledForDeletion->isEmpty()) { $pks = array(); foreach ($this->narrationIssuesScheduledForDeletion as $entry) { $entryPk = []; $entryPk[1] = $this->getId(); $entryPk[0] = $entry->getId(); $pks[] = $entryPk; } \RIssuesNarrationpluginQuery::create()->filterByPrimaryKeys($pks)->delete($con); $this->narrationIssuesScheduledForDeletion = null; } } if ($this->collNarrationIssues) { foreach ($this->collNarrationIssues as $narrationIssue) { if (!$narrationIssue->isDeleted() && ($narrationIssue->isNew() || $narrationIssue->isModified())) { $narrationIssue->save($con); } } } if ($this->rtfIssuesScheduledForDeletion !== null) { if (!$this->rtfIssuesScheduledForDeletion->isEmpty()) { $pks = array(); foreach ($this->rtfIssuesScheduledForDeletion as $entry) { $entryPk = []; $entryPk[1] = $this->getId(); $entryPk[0] = $entry->getId(); $pks[] = $entryPk; } \RIssuesRtfpluginQuery::create()->filterByPrimaryKeys($pks)->delete($con); $this->rtfIssuesScheduledForDeletion = null; } } if ($this->collRtfIssues) { foreach ($this->collRtfIssues as $rtfIssue) { if (!$rtfIssue->isDeleted() && ($rtfIssue->isNew() || $rtfIssue->isModified())) { $rtfIssue->save($con); } } } if ($this->singleIssuesScheduledForDeletion !== null) { if (!$this->singleIssuesScheduledForDeletion->isEmpty()) { $pks = array(); foreach ($this->singleIssuesScheduledForDeletion as $entry) { $entryPk = []; $entryPk[1] = $this->getId(); $entryPk[0] = $entry->getId(); $pks[] = $entryPk; } \RIssuesSinglepluginQuery::create()->filterByPrimaryKeys($pks)->delete($con); $this->singleIssuesScheduledForDeletion = null; } } if ($this->collSingleIssues) { foreach ($this->collSingleIssues as $singleIssue) { if (!$singleIssue->isDeleted() && ($singleIssue->isNew() || $singleIssue->isModified())) { $singleIssue->save($con); } } } if ($this->xmlIssuesScheduledForDeletion !== null) { if (!$this->xmlIssuesScheduledForDeletion->isEmpty()) { $pks = array(); foreach ($this->xmlIssuesScheduledForDeletion as $entry) { $entryPk = []; $entryPk[1] = $this->getId(); $entryPk[0] = $entry->getId(); $pks[] = $entryPk; } \RIssuesXmlpluginQuery::create()->filterByPrimaryKeys($pks)->delete($con); $this->xmlIssuesScheduledForDeletion = null; } } if ($this->collXmlIssues) { foreach ($this->collXmlIssues as $xmlIssue) { if (!$xmlIssue->isDeleted() && ($xmlIssue->isNew() || $xmlIssue->isModified())) { $xmlIssue->save($con); } } } if ($this->rIssuesAllpluginsScheduledForDeletion !== null) { if (!$this->rIssuesAllpluginsScheduledForDeletion->isEmpty()) { \RIssuesAllpluginQuery::create()->filterByPrimaryKeys($this->rIssuesAllpluginsScheduledForDeletion->getPrimaryKeys(false))->delete($con); $this->rIssuesAllpluginsScheduledForDeletion = null; } } if ($this->collRIssuesAllplugins !== null) { foreach ($this->collRIssuesAllplugins as $referrerFK) { if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { $affectedRows += $referrerFK->save($con); } } } if ($this->rIssuesNarrationpluginsScheduledForDeletion !== null) { if (!$this->rIssuesNarrationpluginsScheduledForDeletion->isEmpty()) { \RIssuesNarrationpluginQuery::create()->filterByPrimaryKeys($this->rIssuesNarrationpluginsScheduledForDeletion->getPrimaryKeys(false))->delete($con); $this->rIssuesNarrationpluginsScheduledForDeletion = null; } } if ($this->collRIssuesNarrationplugins !== null) { foreach ($this->collRIssuesNarrationplugins as $referrerFK) { if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { $affectedRows += $referrerFK->save($con); } } } if ($this->rIssuesRtfpluginsScheduledForDeletion !== null) { if (!$this->rIssuesRtfpluginsScheduledForDeletion->isEmpty()) { \RIssuesRtfpluginQuery::create()->filterByPrimaryKeys($this->rIssuesRtfpluginsScheduledForDeletion->getPrimaryKeys(false))->delete($con); $this->rIssuesRtfpluginsScheduledForDeletion = null; } } if ($this->collRIssuesRtfplugins !== null) { foreach ($this->collRIssuesRtfplugins as $referrerFK) { if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { $affectedRows += $referrerFK->save($con); } } } if ($this->rIssuesSinglepluginsScheduledForDeletion !== null) { if (!$this->rIssuesSinglepluginsScheduledForDeletion->isEmpty()) { \RIssuesSinglepluginQuery::create()->filterByPrimaryKeys($this->rIssuesSinglepluginsScheduledForDeletion->getPrimaryKeys(false))->delete($con); $this->rIssuesSinglepluginsScheduledForDeletion = null; } } if ($this->collRIssuesSingleplugins !== null) { foreach ($this->collRIssuesSingleplugins as $referrerFK) { if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { $affectedRows += $referrerFK->save($con); } } } if ($this->rIssuesXmlpluginsScheduledForDeletion !== null) { if (!$this->rIssuesXmlpluginsScheduledForDeletion->isEmpty()) { \RIssuesXmlpluginQuery::create()->filterByPrimaryKeys($this->rIssuesXmlpluginsScheduledForDeletion->getPrimaryKeys(false))->delete($con); $this->rIssuesXmlpluginsScheduledForDeletion = null; } } if ($this->collRIssuesXmlplugins !== null) { foreach ($this->collRIssuesXmlplugins as $referrerFK) { if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { $affectedRows += $referrerFK->save($con); } } } $this->alreadyInSave = false; } return $affectedRows; }