Exemple #1
0
 /**
  * Declares an association between this object and a ChildRigAttributes object.
  *
  * @param  ChildRigAttributes $v
  * @return $this|\RigAttributeValues The current object (for fluent API support)
  * @throws PropelException
  */
 public function setRigAttributes(ChildRigAttributes $v = null)
 {
     if ($v === null) {
         $this->setRigAttributeId(NULL);
     } else {
         $this->setRigAttributeId($v->getId());
     }
     $this->aRigAttributes = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildRigAttributes object, it will not be re-added.
     if ($v !== null) {
         $v->addRigAttributeValues($this);
     }
     return $this;
 }
 /**
  * Filter the query by a related \RigAttributes object
  *
  * @param \RigAttributes|ObjectCollection $rigAttributes The related object(s) to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @throws \Propel\Runtime\Exception\PropelException
  *
  * @return ChildRigAttributeValuesQuery The current query, for fluid interface
  */
 public function filterByRigAttributes($rigAttributes, $comparison = null)
 {
     if ($rigAttributes instanceof \RigAttributes) {
         return $this->addUsingAlias(RigAttributeValuesTableMap::COL_RIG_ATTRIBUTE_ID, $rigAttributes->getId(), $comparison);
     } elseif ($rigAttributes instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(RigAttributeValuesTableMap::COL_RIG_ATTRIBUTE_ID, $rigAttributes->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByRigAttributes() only accepts arguments of type \\RigAttributes or Collection');
     }
 }
Exemple #3
0
 /**
  * Exclude object from result
  *
  * @param   ChildRigAttributes $rigAttributes Object to remove from the list of results
  *
  * @return $this|ChildRigAttributesQuery The current query, for fluid interface
  */
 public function prune($rigAttributes = null)
 {
     if ($rigAttributes) {
         $this->addUsingAlias(RigAttributesTableMap::COL_ID, $rigAttributes->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }