コード例 #1
0
ファイル: Rights.php プロジェクト: Rokfor/rokfor-php-db
 /**
  * Remove issues of this object
  * through the R_rights_forissue cross reference table.
  *
  * @param ChildIssues $issues
  * @return ChildRights The current object (for fluent API support)
  */
 public function removeIssues(ChildIssues $issues)
 {
     if ($this->getIssuess()->contains($issues)) {
         $rRightsForissue = new ChildRRightsForissue();
         $rRightsForissue->setIssues($issues);
         if ($issues->isRightssLoaded()) {
             //remove the back reference if available
             $issues->getRightss()->removeObject($this);
         }
         $rRightsForissue->setRights($this);
         $this->removeRRightsForissue(clone $rRightsForissue);
         $rRightsForissue->clear();
         $this->collIssuess->remove($this->collIssuess->search($issues));
         if (null === $this->issuessScheduledForDeletion) {
             $this->issuessScheduledForDeletion = clone $this->collIssuess;
             $this->issuessScheduledForDeletion->clear();
         }
         $this->issuessScheduledForDeletion->push($issues);
     }
     return $this;
 }
コード例 #2
0
ファイル: Books.php プロジェクト: Rokfor/rokfor-php-db
 /**
  * @param  ChildIssues $issues The ChildIssues object to remove.
  * @return $this|ChildBooks The current object (for fluent API support)
  */
 public function removeIssues(ChildIssues $issues)
 {
     if ($this->getIssuess()->contains($issues)) {
         $pos = $this->collIssuess->search($issues);
         $this->collIssuess->remove($pos);
         if (null === $this->issuessScheduledForDeletion) {
             $this->issuessScheduledForDeletion = clone $this->collIssuess;
             $this->issuessScheduledForDeletion->clear();
         }
         $this->issuessScheduledForDeletion[] = $issues;
         $issues->setBooks(null);
     }
     return $this;
 }
コード例 #3
0
ファイル: Plugins.php プロジェクト: Rokfor/rokfor-php-db
 /**
  * Remove xmlIssue of this object
  * through the R_issues_xmlplugin cross reference table.
  *
  * @param ChildIssues $xmlIssue
  * @return ChildPlugins The current object (for fluent API support)
  */
 public function removeXmlIssue(ChildIssues $xmlIssue)
 {
     if ($this->getXmlIssues()->contains($xmlIssue)) {
         $rIssuesXmlplugin = new ChildRIssuesXmlplugin();
         $rIssuesXmlplugin->setXmlIssue($xmlIssue);
         if ($xmlIssue->isXmlPluginsLoaded()) {
             //remove the back reference if available
             $xmlIssue->getXmlPlugins()->removeObject($this);
         }
         $rIssuesXmlplugin->setXmlPlugin($this);
         $this->removeRIssuesXmlplugin(clone $rIssuesXmlplugin);
         $rIssuesXmlplugin->clear();
         $this->collXmlIssues->remove($this->collXmlIssues->search($xmlIssue));
         if (null === $this->xmlIssuesScheduledForDeletion) {
             $this->xmlIssuesScheduledForDeletion = clone $this->collXmlIssues;
             $this->xmlIssuesScheduledForDeletion->clear();
         }
         $this->xmlIssuesScheduledForDeletion->push($xmlIssue);
     }
     return $this;
 }