Exemplo n.º 1
0
 /**
  * @param    Content $content The content object to add.
  */
 protected function doAddContent($content)
 {
     $contentFolder = new ChildContentFolder();
     $contentFolder->setContent($content);
     $this->addContentFolder($contentFolder);
     // set the back reference to this object directly as using provided method either results
     // in endless loop or in multiple relations
     if (!$content->getFolders()->contains($this)) {
         $foreignCollection = $content->getFolders();
         $foreignCollection[] = $this;
     }
 }