Esempio n. 1
0
 /**
  * Exclude object from result
  *
  * @param   ChildRig $rig Object to remove from the list of results
  *
  * @return $this|ChildRigQuery The current query, for fluid interface
  */
 public function prune($rig = null)
 {
     if ($rig) {
         $this->addUsingAlias(RigTableMap::COL_ID, $rig->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Esempio n. 2
0
 /**
  * Declares an association between this object and a ChildRig object.
  *
  * @param  ChildRig $v
  * @return $this|\RigAttributeValue The current object (for fluent API support)
  * @throws PropelException
  */
 public function setRig(ChildRig $v = null)
 {
     if ($v === null) {
         $this->setRigId(NULL);
     } else {
         $this->setRigId($v->getId());
     }
     $this->aRig = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildRig object, it will not be re-added.
     if ($v !== null) {
         $v->addRigAttributeValue($this);
     }
     return $this;
 }
 /**
  * Filter the query by a related \Rig object
  *
  * @param \Rig|ObjectCollection $rig 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 ChildRigAttributeValueQuery The current query, for fluid interface
  */
 public function filterByRig($rig, $comparison = null)
 {
     if ($rig instanceof \Rig) {
         return $this->addUsingAlias(RigAttributeValueTableMap::COL_RIG_ID, $rig->getId(), $comparison);
     } elseif ($rig instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(RigAttributeValueTableMap::COL_RIG_ID, $rig->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByRig() only accepts arguments of type \\Rig or Collection');
     }
 }