コード例 #1
0
ファイル: Activity.php プロジェクト: keeko/core
 /**
  * Declares an association between this object and a ChildActivityObject object.
  *
  * @param  ChildActivityObject $v
  * @return $this|\keeko\core\model\Activity The current object (for fluent API support)
  * @throws PropelException
  */
 public function setObject(ChildActivityObject $v = null)
 {
     if ($v === null) {
         $this->setObjectId(NULL);
     } else {
         $this->setObjectId($v->getId());
     }
     $this->aObject = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildActivityObject object, it will not be re-added.
     if ($v !== null) {
         $v->addActivityRelatedByObjectId($this);
     }
     return $this;
 }