/**
  * Clears the current object, sets all attributes to their default values and removes
  * outgoing references as well as back-references (from other objects to this one. Results probably in a database
  * change of those foreign objects when you call `save` there).
  */
 public function clear()
 {
     if (null !== $this->aJaAclPerfiles) {
         $this->aJaAclPerfiles->removeJaAclUsuariosPerfiles($this);
     }
     if (null !== $this->aJaUsuarios) {
         $this->aJaUsuarios->removeJaAclUsuariosPerfiles($this);
     }
     $this->usuario_id = null;
     $this->perfil_id = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
 /**
  * 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');
     }
 }
Exemplo n.º 3
0
 /**
  * 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;
 }