コード例 #1
0
ファイル: BaseVisitation.php プロジェクト: peterAK/pgs-sts
 /**
  * Declares an association between this object and a Store object.
  *
  * @param                  Store $v
  * @return Visitation The current object (for fluent API support)
  * @throws PropelException
  */
 public function setStore(Store $v = null)
 {
     if ($v === null) {
         $this->setStoreId(NULL);
     } else {
         $this->setStoreId($v->getId());
     }
     $this->aStore = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the Store object, it will not be re-added.
     if ($v !== null) {
         $v->addVisitation($this);
     }
     return $this;
 }