示例#1
0
 /**
  * Declares an association between this object and a MeshingTrustType object.
  *
  * @param      MeshingTrustType $v
  * @return     MeshingTrustLocal The current object (for fluent API support)
  * @throws     PropelException
  */
 public function setMeshingTrustType(MeshingTrustType $v = null)
 {
     if ($v === null) {
         $this->setType(NULL);
     } else {
         $this->setType($v->getId());
     }
     $this->aMeshingTrustType = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the MeshingTrustType object, it will not be re-added.
     if ($v !== null) {
         $v->addMeshingTrustLocal($this);
     }
     return $this;
 }
 /**
  * Filter the query by a related MeshingTrustType object
  *
  * @param     MeshingTrustType|PropelCollection $meshingTrustType The related object(s) to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return    MeshingTrustLocalQuery The current query, for fluid interface
  */
 public function filterByMeshingTrustType($meshingTrustType, $comparison = null)
 {
     if ($meshingTrustType instanceof MeshingTrustType) {
         return $this->addUsingAlias(MeshingTrustLocalPeer::TYPE, $meshingTrustType->getId(), $comparison);
     } elseif ($meshingTrustType instanceof PropelCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(MeshingTrustLocalPeer::TYPE, $meshingTrustType->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByMeshingTrustType() only accepts arguments of type MeshingTrustType or PropelCollection');
     }
 }
 /**
  * Exclude object from result
  *
  * @param     MeshingTrustType $meshingTrustType Object to remove from the list of results
  *
  * @return    MeshingTrustTypeQuery The current query, for fluid interface
  */
 public function prune($meshingTrustType = null)
 {
     if ($meshingTrustType) {
         $this->addUsingAlias(MeshingTrustTypePeer::ID, $meshingTrustType->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }