Example #1
0
 /**
  * Declares an association between this object and a Page object.
  *
  * @param                  Page $v
  * @return ContentObject The current object (for fluent API support)
  * @throws PropelException
  */
 public function setPage(Page $v = null)
 {
     if ($v === null) {
         $this->setPageId(NULL);
     } else {
         $this->setPageId($v->getId());
     }
     $this->aPage = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the Page object, it will not be re-added.
     if ($v !== null) {
         $v->addContentObject($this);
     }
     return $this;
 }