/** * Declares an association between this object and a ChildJaUsuarios object. * * @param ChildJaUsuarios $v * @return $this|\JaAclUsuariosPerfiles The current object (for fluent API support) * @throws PropelException */ public function setJaUsuarios(ChildJaUsuarios $v = null) { if ($v === null) { $this->setUsuarioId(NULL); } else { $this->setUsuarioId($v->getId()); } $this->aJaUsuarios = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildJaUsuarios object, it will not be re-added. if ($v !== null) { $v->addJaAclUsuariosPerfiles($this); } return $this; }
/** * Filter the query by a related \JaUsuarios object * * @param \JaUsuarios|ObjectCollection $jaUsuarios 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 ChildJaAclUsuariosPerfilesQuery The current query, for fluid interface */ public function filterByJaUsuarios($jaUsuarios, $comparison = null) { if ($jaUsuarios instanceof \JaUsuarios) { return $this->addUsingAlias(JaAclUsuariosPerfilesTableMap::COL_USUARIO_ID, $jaUsuarios->getId(), $comparison); } elseif ($jaUsuarios instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(JaAclUsuariosPerfilesTableMap::COL_USUARIO_ID, $jaUsuarios->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByJaUsuarios() only accepts arguments of type \\JaUsuarios or Collection'); } }
/** * Exclude object from result * * @param ChildJaUsuarios $jaUsuarios Object to remove from the list of results * * @return $this|ChildJaUsuariosQuery The current query, for fluid interface */ public function prune($jaUsuarios = null) { if ($jaUsuarios) { $this->addUsingAlias(JaUsuariosTableMap::COL_ID, $jaUsuarios->getId(), Criteria::NOT_EQUAL); } return $this; }