/** * Exclude object from result * * @param ChildJaCategorias $jaCategorias Object to remove from the list of results * * @return $this|ChildJaCategoriasQuery The current query, for fluid interface */ public function prune($jaCategorias = null) { if ($jaCategorias) { $this->addUsingAlias(JaCategoriasTableMap::COL_ID, $jaCategorias->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * Declares an association between this object and a ChildJaCategorias object. * * @param ChildJaCategorias $v * @return $this|\JaPaginaCategorias The current object (for fluent API support) * @throws PropelException */ public function setJaCategorias(ChildJaCategorias $v = null) { if ($v === null) { $this->setIdCategoria(NULL); } else { $this->setIdCategoria($v->getId()); } $this->aJaCategorias = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildJaCategorias object, it will not be re-added. if ($v !== null) { $v->addJaPaginaCategorias($this); } return $this; }
/** * Filter the query by a related \JaCategorias object * * @param \JaCategorias|ObjectCollection $jaCategorias 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 ChildJaPaginaCategoriasQuery The current query, for fluid interface */ public function filterByJaCategorias($jaCategorias, $comparison = null) { if ($jaCategorias instanceof \JaCategorias) { return $this->addUsingAlias(JaPaginaCategoriasTableMap::COL_ID_CATEGORIA, $jaCategorias->getId(), $comparison); } elseif ($jaCategorias instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(JaPaginaCategoriasTableMap::COL_ID_CATEGORIA, $jaCategorias->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByJaCategorias() only accepts arguments of type \\JaCategorias or Collection'); } }