コード例 #1
0
ファイル: ProviderQuery.php プロジェクト: mtornero/slowshop
 /**
  * Exclude object from result
  *
  * @param   ChildProvider $provider Object to remove from the list of results
  *
  * @return $this|ChildProviderQuery The current query, for fluid interface
  */
 public function prune($provider = null)
 {
     if ($provider) {
         $this->addUsingAlias(ProviderTableMap::COL_PROVIDER_ID, $provider->getProviderId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
コード例 #2
0
ファイル: Product.php プロジェクト: mtornero/slowshop
 /**
  * Declares an association between this object and a ChildProvider object.
  *
  * @param  ChildProvider $v
  * @return $this|\App\Propel\Product The current object (for fluent API support)
  * @throws PropelException
  */
 public function setProvider(ChildProvider $v = null)
 {
     if ($v === null) {
         $this->setProviderId(NULL);
     } else {
         $this->setProviderId($v->getProviderId());
     }
     $this->aProvider = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildProvider object, it will not be re-added.
     if ($v !== null) {
         $v->addProduct($this);
     }
     return $this;
 }