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