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