/** * Exclude object from result * * @param Slider_categ $slider_categ Object to remove from the list of results * * @return Slider_categQuery The current query, for fluid interface */ public function prune($slider_categ = null) { if ($slider_categ) { $this->addUsingAlias(Slider_categPeer::ID, $slider_categ->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * Declares an association between this object and a Slider_categ object. * * @param Slider_categ $v * @return Slider_mae The current object (for fluent API support) * @throws PropelException */ public function setSlider_categ(Slider_categ $v = null) { if ($v === null) { $this->setId_categoria(NULL); } else { $this->setId_categoria($v->getId()); } $this->aSlider_categ = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the Slider_categ object, it will not be re-added. if ($v !== null) { $v->addSlider_mae($this); } return $this; }
/** * Filter the query by a related Slider_categ object * * @param Slider_categ|PropelCollection $slider_categ The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return Slider_maeQuery The current query, for fluid interface */ public function filterBySlider_categ($slider_categ, $comparison = null) { if ($slider_categ instanceof Slider_categ) { return $this->addUsingAlias(Slider_maePeer::ID_CATEGORIA, $slider_categ->getId(), $comparison); } elseif ($slider_categ instanceof PropelCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(Slider_maePeer::ID_CATEGORIA, $slider_categ->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterBySlider_categ() only accepts arguments of type Slider_categ or PropelCollection'); } }